Announcing TypeScript 5.2 Beta

https://devblogs.microsoft.com/typescript/announcing-typescript-5-2-beta/

25 points · 2 comments · view on lemmy.world

2 Comments

ohheynoway@programming.dev · 1 pts · 3y (1 reply)

‘using’ is pretty interesting, seems like it would make disposables easier to use. Though naming the disposable that you never use is a little weird.

DanielRosenwasser@programming.dev · 1 pts · 3y

Though naming the disposable that you never use is a little weird.

Usually you will use the disposable value, as it'll have some other methods. In cases where you don't, it's often for something like locking/unlocking a resource.