4 ms·
I would say that RAII is enforced try-with-resources without the extra syntax and releasing memory when resources are released instead of having a garbage colle
by oriolid 5y ago
I would say that RAII is enforced try-with-resources without the extra syntax and releasing memory when resources are released instead of having a garbage collector is a nice performance optimization. C# with "using var" is on the right track, though. Just make RAII default and explicit close/dispose the special case and add syntax for type-deduced immutable values, and I'd be happy.