刚才在es4-discuss看到的:
Graydon 写道
Sure. I can describe the state of most issues as named by the proposals page, I think. Some of the proposals have sort of no-longer-sensible names so I'm going to use the proposals page as a rough guide and name the things that have seemed, in my work, to be separate "features" of the RI.
Implemented, may have bugs:
- classes and interfaces
- namespaces
- pragmas
- let, const, let-const
- iterators
- enumerability control
- type expressions / definitions / annotations
- runtime type checks ("standard mode")
- nullability - destructuring assignment
- slice syntax
- hashcode
- catchalls
- map & vector
- date & time improvements
- meta objects
- static generics
- string trim
- typeof
- globals
- expression closures
- name objects
- type operators (is / to / cast / wrap)
Implemented and partly working, but still in flux / work to do:
- inheritance checking
- strict mode
- type parameters
- structural types
- numbers & decimal
- getters & setters (structural part is incomplete)
- packages
Partially implemented / not yet working:
- program units
- generic function
- updates to unicode
- updates to regexps
Unimplemented:
- generators
- tail calls
- triple quotes
- stack inspection
- reformed with
- resurrected eval (eval exists but may be wrong)
- help for the argument object
- "this function" / "this generator"
In my mind the "high priority" deficits where I actually know what to do are:
- extending strict mode
- extending the part of the definer that checks inheritance
The remaining issues on my list all involve some spec/discussion work (units and packages, type parameters, structural typechecks, tail calls, reformed rules for with/this/eval/arguments)
很好,这问题问得好回答得也好。可以更有效的阅读ES4 RI了。
===================================================================
Francis Cheng在
他的blog提到了
ECMAScript 4中的Vector。内容倒没什么让人感到特别意外的地方,反正C++和Java里都是这么写的了。
Vector的构造器会接受两个参数,第一个是初始长度,第二个是是否为固定长度。所以可以这样构造一个Vector实例:
var intVector:Vector.<int> = new Vector.<int>(7, true)
得到的intVector就是一个长度为7,长度固定的Vector。
Vector有下列几个特性:
- Vector总是密集的(而不像数组中间可以有空洞)
- Vector会进行边界检查(例如说不能对一个长度为3的Vector中下标为10的位置赋值)
- Vector可以是固定长度的
- Vector有类型参数
- Vector拥有数组所拥有的方法(例如push(), pop(), slice(), sort()等),并且还有些额外的方法如every(), filter(), indexOf(), some()等。
分享到:
相关推荐
ECMAScript 2018规范。 主要包含内容: 异步迭代器:原生支持在 JavaScript 中对异步获取的数据做迭代。 Object Rest/Spread Properties Promise.prototype.finally Template Literal(模板字面量):取消 ...
ECMAScripter 是 JVM 语言的 IDE。 这个IDE非常简单易用。 因此,您可以轻松地使用知名语言编写和测试您的算法。
http://www.ecma-international.org/ecma-262/6.0/ 20150701官网下载。
ECMAScript中的引用类型,主要包括Object类、Boolean类、Number类、String类、instanceof运算符
ECMAScript2021中文最新,ECMAScript2021中文文档,第1-6章,持续更新,喜欢请star。git地址https://github.com/fangniyima/ECMAScript-notes
ECMAScript 5.1 中文版,内容来自ecmascript.cn,做成的单文件版本。
ECMAscript基础
This Standard defines the ECMAScript Edition 4 scripting language
符合ECMAScript规范的globalThis / shim。 如果不可用,则调用其“ shim”方法来对globalThis进行shim。 该软件包实现了接口。 它在ES3支持的环境中工作,并符合。 最常见的用法: var globalThis = require ( '...
es6features, ECMAScript 6功能概述 ECMAScript /es6features简介ECMAScript 6,也称为 ECMAScript 2015,是ECMAScript标准的最新版本。 ES6是对该语言的重大更新,自ES5以来对该语言的第一次更新是标准化的。 这些
js 学习必备。 ECMAScript5.1中文版
他同时也是一个成功的作者,其最重要的著作《 JavaScript 高级编程》基本上是 JS 领域的必读之作,而他还出版了另一些质量很高的著作。《高级编程》一书实际上并不是 完全高深的内容,而是从基本的层次开始讲述,...
ECMAScript 6.0的一些基本知识点,let,const,var 的区别;String字符串;Set数据结构,其中文件为markdown格式
主要介绍了ECMAScript6中Map/WeakMap详解的相关资料,需要的朋友可以参考下
主要介绍了ECMAScript6中Set/WeakSet详解的相关资料,需要的朋友可以参考下
Learning ECMAScript 6 Learning ECMAScript 6 Learning ECMAScript 6 Learning ECMAScript 6
ECMAScript Javascript Promise 详解
此标准定义了 ECMAScript 脚本语言。本节包含对 ECMAScript 语言非规范性的概述。
ECMA-262简述 ECMAScript语言概述 ECMAScript对象概述(原型链Prototype Chain) ECMA-262主要术语 ECMAScript执行环境(作用域链Scope Chain,闭包机制) ECMAScript函数(new原理) ...ECMA-262参考资料
这个 Ecma 标准定义了 ECMAScript 2020 语言。它是 ECMAScript 语言的第十一版 规范。自 1997 年第一版出版以来,ECMAScript 已经发展成为世界上使用最广泛的通用编程语言之一。它最广为人知的是嵌入在Web浏览器中的...