4 ms·
It's essentially the exact same thing as the using statement in C#, so if you search for that you should be able to find more info. But as to your question "Co
by hn_throwaway_99 3y ago
It's essentially the exact same thing as the using statement in C#, so if you search for that you should be able to find more info.
But as to your question "Could anyone here help me understand a more robust example where `try...finally` just won't work", using is just basically syntactic sugar for try/finally, but I'm very much in favor of syntax that gets rid of lots of verbose boilerplate that can obscure the real purpose of your code.