async/await is not a new concept in programming languages:
C# has it since long time ago [5];
proposal to add async/await in ECMAScript 7 [2]; see also Traceur project [9];
Facebook's Hack/HHVM [6];
Google's Dart language [7];
Scala [8];
proposal to add async/await to C++ [10];
and many other less popular languages.
This is a huge benefit, as some users already have experience with async/await, and because it makes working with many languages in one project easier (Python with ECMAScript 7 for instance).
在PEP 492(建议添加}关键字)中,mentioned是C使用它们的(除其他外):
await
和{(重点是我的)
所以关键字名称确实是受到C(和其他语言)的启发,至于“为什么”也在最后一段中解释了。在
相关问题 更多 >
编程相关推荐