What is ESNext?

一曲冷凌霜 提交于 2020-01-12 12:46:47

问题


I've come across the term "ESNext", and wondering it is same as the EcmaScript. So, I have these questions here:

  • What is ESNext, actually?
  • Does it refer to any specific version of EcmaScript?

回答1:


What is ESNext, actually?

It varies depending on who's using the term, usually "the next" version of ECMAScript (JavaScript). For instance, at this moment if someone said "ESNext" they might be talking about ES2019 plus BigInt, dynamic import, and other features that recently reached Stage 4 of the process, or they might even be talking about those plus some advanced Stage 3 proposals.

Does it refer to any specific version of EcmaScript?

No, it usually refers to a constantly moving target just beyond the current snapshot specification.

But again, it varies a bit by who's using it.




回答2:


ESNext is a name that always indicates the next version of JavaScript.

The current ECMAScript version is ES2018. It was released in June 2018.

Proposals to the ECMAScript standard are organized in stages. Stages 1–3 are an incubator of new features, and features reaching Stage 4 are finalized as part of the new standard.




回答3:


ES.Next is a dynamic name that refers to whatever the next version is at time of writing. ES.Next features are more correctly called proposals, because, by definition, the specification has not been finalized yet. Many features that are a “part” of ES.Next were not even proposed during the work on ES6. Indeed, as a living language, ECMAScript / JavaScript is constantly evolving and being enhanced, and new proposals are continuously being added into ES.Next.

Source : Quora



来源:https://stackoverflow.com/questions/56521178/what-is-esnext

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!