News for hackers. Stuff that matters.
Re:TypeScript 5.2's New Keyword: 'using' by LordN00b on Monday June 19, 2023 @05:47AM (#36389151)
As long as we don't have to do the dipose dance (isDisposed/isDispoing booleans).
Re:TypeScript 5.2's New Keyword: 'using' by manojlds on Monday June 19, 2023 @06:26AM (#36389416)
It's been a while since I coded in C# but you just triggered some bad memories.
Re:TypeScript 5.2's New Keyword: 'using' by bertylicious on Monday June 19, 2023 @05:54AM (#36389199)
This awkward dance is due to destructors/finalizers calling `Dispose()`. Since JS doesn't have those, this shouldn't be an issue.
Re:TypeScript 5.2's New Keyword: 'using' by pwdisswordfishc on Monday June 19, 2023 @02:43PM (#36394999)
FinalizationRegistry exists…