ECMAScript 6 中是否支持静态类型? ECMAScript 7 怎么样?
最佳答案
没有。
但是在 ECMA-Script Wikipage 上有一段关于 ECMA-Script 7 中的更改的内容:
The Seventh Edition is in a very early stage of development, but is intended to continue the themes of language reform, code isolation, control of effects and library/tool enabling from ES6. New features proposed include promises/concurrency, number and math enhancements, guards and trademarks (an alternative to static typing), operator overloading, value types (first-class number-like objects), new record structures (records, tuples and typed arrays), pattern matching, and traits.
您可能会感兴趣。
关于javascript - ECMAScript 6 或 7 是否支持静态类型?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22407765/