Re:Microfeatures I'd like to see in more languages
by gpderetta on Friday January 06, 2023 @07:28AM
(#34273933)
'with' is cool, but it is annoying that it creates a new scope. And then you have ExitStack if your lifetimes do not neatly map to scopes. And AsyncExitStack and async with if you happen to be in an async function.
I prefer RAII.