Brian Terlson Brian.Terlson at microsoft.com
Tue Jun 17 14:25:34 PDT 2014

I like this proposal overall. Another benefit is that your super class constructors can return objects and things will just work (I think?).

I'm of the opinion that new should be required. Perhaps for `class C { }`, C is a function as if created by the expression `function () { throw('Class must be instantiated with new'); }`.

In addition to the super-must-be-first restriction, we might also want a 'cant reference this before super' restriction since this will not mean anything useful until after you super.

More information about the es-discuss mailing list