3 ms·
Give me C# with RAII and native AOT compilation and I basically don't need to use C++ again. That's close enough to regular C++ that a lot of programs wouldn't
by deadbeeves 4y ago
Give me C# with RAII and native AOT compilation and I basically don't need to use C++ again. That's close enough to regular C++ that a lot of programs wouldn't need major redesigns.
- jmull 4y agoI think both of those are available in C#.
- deadbeeves 4y agoAOT maybe. RAII definitely not.
- jmull 4y agousing/disposable?
- deadbeeves 4y agousing and/or finally are things you have to get right every time you instantiate the class, and if you get it wrong you no longer get deterministic destruction. Compare with C++, where RAII is the default policy and you have to take extra steps to get dynamic lifetimes.