ES6,ES7(和更大),ES2015,stage-0,stage-1(和更大)之间的关系是什么? [英] What is the relation between ES6, ES7 (and bigger), ES2015, stage-0, stage-1 (and bigger)?

查看:687
本文介绍了ES6,ES7(和更大),ES2015,stage-0,stage-1(和更大)之间的关系是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在关于new-ish的文章中的以下术语之间感到困惑:

I am lately confused between the following terms in articles about "new-ish" JavaScript:


  • ES6

  • ES7(有时候很少,ES8和更大)

  • ES2015(有时ES2016以上)

  • stage-0 (和阶段1和更大)

  • ES6
  • ES7 (and sometimes, though rarely, ES8 and bigger)
  • ES2015 (and sometimes ES2016 and bigger)
  • stage-0 (and stage-1 and bigger)

似乎其中有些是子集,功能方面的其他,但我是不太清楚哪些是其子集。

It seems some of those are subset, feature-wise, of the others, but I am not quite clear on which are subsets of which.

推荐答案

公平的,这有点混乱。 : - )

Fair enough, it is a bit confusing. :-)

四位数字是几年,其他都是规格版。

The four-digit numbers are years, the others are specification editions.

ES2015是ES6 。它是ECMAScript 2015的缩写,ECMAScript 2015是由第六版规范(因此称为ES6)定义的语言的官方名称。从规格

ES2015 is ES6. It's short for ECMAScript 2015, which is the official name of the language, which is defined by the 6th edition of the specification (hence, "ES6"). From the spec:


标准ECMA-262

Standard ECMA-262

第6版/ 2015年6月

6th Edition / June 2015

ECMAScript®2015语言规范

ECMAScript® 2015 Language Specification

同样, ES2016是ES7


标准ECMA-262

Standard ECMA-262

7ᵗʰ版/ 2016年6月

7ᵗʰ Edition / June 2016

ECMAScript®2016语言规范

ECMAScript® 2016 Language Specification

2015年是他们第一次把这一年放入语言名称。以前的规范,2011年的5.1,只是ECMAScript®语言规范。所以你会听到ES5.1(2011年6月发行)ES5(2009年12月发行)和ES3(1999年12月出版)。 (没有ES4。)

2015 was the first time they put the year into the language name. The previous spec, 5.1 in 2011, was just the "ECMAScript® Language Specification". So you'll hear ES5.1 (published June 2011) ES5 (published December 2009) and ES3 (published December 1999). (There was no ES4.)

stage-0等指的是提高语言的阶段,它们在这个由负责语言的TC-39委员会管理的github页面。增强过程在 TC-39页面中列出:

The stage-0, etc., refer to the stage of proposals to enhance the language, which are handled on this github page managed by the TC-39 committee responsible for the language. The enhancement process is laid out on this page from TC-39:


0 - Strawman

0 - Strawman

1 - 提案

2 - 草稿

3 - 候选人

4 - 已完成

...一旦在第4阶段,它将是列在此处以及预期的规范。例如,异步功能达到Stage 4,并将在ES2017中。

...and once it's at Stage 4, it'll be listed here along with the specification it's expected to be in. For instance, Async Functions have reached Stage 4 and will be in ES2017.

这篇关于ES6,ES7(和更大),ES2015,stage-0,stage-1(和更大)之间的关系是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆