javascript - ECMAScript 6 或 7 是否支持静态类型?

标签 javascript ecmascript-6 static-typing ecmascript-2016

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/

相关文章:

javascript - Uncaught Error : Can't resolve all parameters for SignupComponent: ([object Object],?)。在语法错误(compiler.js:2175)

javascript - 谷歌将圆圈映射到折线坐标数组

javascript - 将 js 字符串文字和 html 传递到组件并保留 html

F# 和运算符重载 : (>) and (^)

JavaScript indexOf() 对于数组中已识别的对象返回 -1

javascript - 如何在 JavaScript 解析后立即按顺序处理异步结果?

javascript - Browserify、Babel 6、Gulp - 传播运算符上出现意外标记

programming-languages - 哪些语言是动态类型和编译的(哪些语言是静态类型和解释的)?

python - Python 中的静态类型检查 : Conflicting alternatives?

javascript - 实现一个允许运行用户自己的 javascript 代码的函数