3 ms·
C# does that with unsafe blocks. Honestly, C# covers the gamut of needs up to classes and closures down to marshaling and pointers. If someone were to make a GC
by jimbob45 6y ago
C# does that with unsafe blocks. Honestly, C# covers the gamut of needs up to classes and closures down to marshaling and pointers. If someone were to make a GC-less C# (cough Vala), I could see it replacing C++ in a matter of single-digit years.
- GordonS 6y agoSince dotnet core 2.1 the garbage collector has been easily pluggable, just by setting an env var, `COMPlus_GCName`, to point to your implementation. That doesn't mean it will operate without a GC mechanism per se, but it can operate with a "zero" GC that never collects garbage. I know this isn't what you meant, but thought it was an interesting point.
- dntbnmpls 6y agoGC-less C# wouldn't even replace Visual C++ codebase in 10 years let alone the entire C++ codebase. And if you are going to use unsafe C#, you might as well just stick to Visual C++. Microsoft really shouldn't have included unsafe code/context into C#. It's the one glaring flaw in an otherwise decent language.