2 ms·
There's also using in typescript (maybe soon in javascript). https://www.totaltypescript.com/typescript-5-2-new-keyword-using https://www.totaltypescript.com/t
by krashidov 2y ago
There's also using in typescript (maybe soon in javascript).
https://www.totaltypescript.com/typescript-5-2-new-keyword-using https://www.totaltypescript.com/typescript-5-2-new-keyword-u...
Not sure I'm a fan of it tbh
- evnp 2y agoInteresting, thanks for highlighting. It does seem like a good set of patterns for the language to cater to. Agree the syntax feels a bit unintuitive at first glance (as opposed to something like `with` context managers in Python, though lack of async probably makes things simpler there).