Dprogramming·ProgrammingbyDanielRosenwasser Announcing TypeScript 5.2 Betahttps://devblogs.microsoft.com/typescript/announcing-typescript-5-2-beta/Open linkView original on programming.dev25Comments2
oohheynoway programming.dev1Hide 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.1
DDanielRosenwasser replyprogramming.dev 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.1
‘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.
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.