News for hackers. Stuff that matters.
Re:TypeScript 5.2's New Keyword: 'using' by hn_throwaway_99 on Monday June 19, 2023 @11:45AM (#36392400)
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.

There are no comments on this comment yet.