by samwillis · 3y ago · 0 comments
I generally avoid new TS features (apart from typing that gets compiled away) until it looks like they are going to make their way into JavaScript, anyone know if thats being considered?
--
Edit: Yes it's being considered, looks likely, but not decided - https://github.com/tc39/proposal-explicit-resource-managemen...
https://learn.microsoft.com/en-us/dotnet/csharp/language-ref...
Well, half of it at least :)
Python has both enter and exit, while this proposal only has the exit half.