Re:TypeScript 5.2's New Keyword: 'using'
by bakkoting on Monday June 19, 2023 @03:03PM
(#36395247)
> not in for-in loops
What would that even mean? The binding in a `for-in` can only ever hold a string, which can't be disposable. With a `for` or `for-of` the binding can hold an object, which is something you could dispose of.
What would that even mean? The binding in a `for-in` can only ever hold a string, which can't be disposable. With a `for` or `for-of` the binding can hold an object, which is something you could dispose of.