短评 · ·

X 归档 2023-06-16

3 条动态 · 图 1 · 视频 1
These interactions and animations are just fantastic. ✨
这些交互和动画简直太棒了。✨
Could someone ELI5 the 'using' proposal for me?

https://github.com/tc39/proposal-explicit-resource-management
有人能用大白话给我讲讲 'using' 提案吗?

https://github.com/tc39/proposal-explicit-resource-management
TypeScript 5.2 will introduce a new keyword - 'using', that you can use to dispose anything with a [Symbol.dispose] function when it leaves scope.
TypeScript 5.2 将引入一个新关键字——'using',当对象离开作用域时,你可以用它自动释放任何带 [Symbol.dispose] 函数的东西。
@mattpocockuk 的配图 1/1