Ajaxian linked to a reference implementation of ECMAScript 4 today. ECMAScript 4 (a.k.a JavaScript) is still a work in progress. When the work is finished, the new standard will be the first major update to the language since 1999.
The language overview whitepaper is 40 pages of ambition – iterators, pragmas, packages, namespaces, serialization, generics, annotations, non-nullable variables - and the list goes on.
Here is some code I was toying with:
interface Printable {
function print()
}
class Point implements Printable {
static var name = "Point class";
private var _x : int;
private var _y : int;
function get x() { return _x; }
function set x(value: int) {...