does rust like ownership type in CSharp possible? #7680
Replies: 3 comments 2 replies
-
I was told that due to the dotnet runtime and garbage collection it is not possible to modify csharp to use borrow checker and ownership like rust. However, Python is also used garbage collection and has a runtime. So what they did is created another language called Mojo that has the same syntax as Python but use borrow checker instead and has no garbage collection and it can run Python code as well. Maybe csharp can do something similar and call it d# lol |
Beta Was this translation helpful? Give feedback.
-
It looks like |
Beta Was this translation helpful? Give feedback.
-
a few days ago, I see a few amzing project on github, one is a rust compiler for CLR
rust is memory safe lanague , and it's ownership base memeory management is amazing , and now c# is designe to work more on unmanaged memory(eg.
Span<T>
,NativeMemroy
.etc), I'm wonder does it possible to add an ownership base native memory type system in dotnet.some ideas
Beta Was this translation helpful? Give feedback.
All reactions