Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think both of those are available in C#.


AOT maybe. RAII definitely not.


using/disposable?


using 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: