@@new
Brendan Eich
brendan at mozilla.org
Wed Jun 18 13:43:41 PDT 2014
Allen Wirfs-Brock wrote:
>> Not so much to me, and one could argue for static [@@new](){} sugar similarly.
>
> I think that fact that these really are semantically equivalent:
>
> function F(x) {this.foo=x};
> class F {constructor(x) {this.foo=x}};
>
> is pretty important to the evolutionary nature ES6 classes.
Jason covered the combinations: his proposal supports class subclassing
function, etc. What concretely do you mean here, if not that? If you
mean refactoring from one to the other, what observably differs?
Again it's important to separate independent parts of the
counter-proposal (which even Jason is changing, e.g. no diff between C()
and new C()). The high order bit remains the uninitialized observability
of the draft-ES6 way.
/be
More information about the es-discuss
mailing list