ECMAScript 6和ECMAScript Harmony有什么区别? [英] What is the difference between ECMAScript 6 and ECMAScript Harmony?

查看:196
本文介绍了ECMAScript 6和ECMAScript Harmony有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以为他们是一样的事情,但是我经常会看到博客中的短语或者这里的答案,这似乎意味着两者之间有区别。即使SO有两个不同的标签,但是它们的描述并没有显示任何明显的区别。



我搜索了一下,只是添加到混乱,因为它似乎我不是唯一一个不确定什么意思的人。这两个术语是否有正式的定义,可能由Ecma International本身定义?如果没有,至少有一个普遍接受的定义?

解决方案

正如@JamesAllardice在评论中已经说过的, href =http://wiki.ecmascript.org/doku.php?id=harmony%3aharmony =nofollow> 和谐 是指所有提案,用于扩展符合常见 TC39委员会的目标。



然后选择其中一些和谐建议并将其并入各种规范草案为下一个版本的语言( ES-next ),目前是ES6。



由TC39委员会批准,因为持续的争议(不和谐 y)称为 straw-man 提案


I thought that they were the same thing for a while, but I often see phrasing in blogs or in answers here that seems to imply that there is a difference between the two. Even SO has two distinct tags, but their description doesn't show any clear difference.

I searched around for a bit and it only added to the confusion as it seems that I am not the only one who's unsure about what means what. Is there an official definition for both of these terms, perhaps defined by Ecma International themselves? If not, is there at least a commonly accepted definition?

解决方案

As @JamesAllardice already said in the comments, the term harmony refers to all proposals for extending the current (ES5) language that meet the common goals of the TC39 committee.

Some of these harmony proposals are then selected and incorporated into the various specification drafts for the next version of the language (ES-next), which is currently ES6.

Those proposals that were not (yet) approved by the TC39 committee because of ongoing disputes ("disharmony") are called straw-man proposals.

这篇关于ECMAScript 6和ECMAScript Harmony有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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