News for hackers. Stuff that matters.
Re:We used C++20 to eliminate a class of runtime bugs by pjmlp on Friday January 14, 2022 @02:43PM (#29939330)
If you are using a relatively recent version of C#, you can get quite close to it, specially now that using can make use of structural typing.

And with help of Roslyn, any type with a "destructor" (aka Dispose) that gets used without a using declaration can be turned into a compiler error.

There are no comments on this comment yet.