是什么使ES6如此特别? [英] What makes ES6 so special?

查看:88
本文介绍了是什么使ES6如此特别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我直到最近才开始着手进行Web开发.我很快收集到的一件事是ES5 =旧的,而ES6 =闪亮的和新的.我认为ES6是必须提供的最新,最出色的ES.但是我才发现ES6落后3个标准,而我一直在使用和喜爱的某些功能甚至都不是它的一部分-它们是在后来的规范中引入的.那么,为什么我阅读的所有内容看起来都只有ES5和ES6?

So I've only recently started to dive head first into web development. One thing I gathered very quickly was that ES5 = old, and ES6 = shiny and new. I figured ES6 was the latest and greatest ES had to offer. But I just found out that ES6 is 3 standards behind, and that some of the features I've been using and loving aren't even a part of it—they came in later specifications. So why does everything I read make it seem like there's just ES5 and ES6?

推荐答案

ES6 (后更名为 ES2015 )只是语言设计过程缓慢之后的第一个版本向上.在供应商同意改进JavaScript并在其引擎中实现新功能(只有在使用诸如CoffeeScript之类的转译器之前才有可能实现)之后,在

ES6 (later rebranded as ES2015) simply was the first release after the language design process was ramped up. After vendors agreed to improve JavaScript and implement new features in their engines (which were possible before only using transpilers like CoffeeScript), lots of feature proposals were made and discussed under the term ES-harmony, with ES6 - the next revision of the standard that was expected to contain all those new features - being the big buzzword.

ES6 最终问世时,它是一个主要发行版,其中包含了许多新功能,但并非所有先前讨论的功能.标准委员会继续努力,并更改为新的年度发布周期(ES7 = ES2016,ES8 = ES2017,ES9 = ES2018等).预计许多 ES7 (新的流行词以及 ES6 + )中会包含很多奇特的东西,但最终未能按时完成(请参见ES7是否仅由两个功能组成?).然后,TC39委员会将采纳提案的过程进行了编纂,该过程仍然得到遵循,并且事情被纳入了完成规范发布(称为 ES-next ).标准修订的重要性下降了,功能由提案的名称表示,而不是预期发布的年份.

When ES6 finally came, it was a major release that included a plethora of new features, but not all of the previously discussed ones. The standards committee kept up their work, and changed to a new yearly release cycle (ES7=ES2016, ES8=ES2017, ES9=ES2018, …). Lots of fancy things were expected to be included in ES7 (the new buzzword, along with ES6+), but ultimately failed to be finished on time (see Is ES7 only composed of two features?). The TC39 committee then codified a process for adopting proposals which is still followed, and things get included in the specification releases (referred to as ES-next) when they're done. The importance of the standard revisions declined, features are denoted by the name of the proposal and not by the year they are expected to get released.

这篇关于是什么使ES6如此特别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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