News for hackers. Stuff that matters.
Re:TypeScript 5.2's New Keyword: 'using' by enlyth on Monday June 19, 2023 @04:25PM (#36396044)
As a consumer of the library, how will I know which calls need to have the using keyword? Is it a case of having to rely on the documentation stating so, or is there some other tell that something contains a Symbol.dispose function?
Re:TypeScript 5.2's New Keyword: 'using' by hokkos on Monday June 19, 2023 @04:58PM (#36396359)
using typescript, you can imagine a little squiggle in vscode under an open without using "using", typescript can know that is object has a disposable symbol.