> Turns out anything we do here is a special form, at least for named classes. 
> So 'constructor' in the harmony:classes proposal still on the wiki (which is 
> not fully in Harmony)is not just a prototype method like any other. Therefore 
> I agree we could use 'new' instead.

That’s what I missed. But wouldn’t that change Allen’s `class` operator to 
something that performs David’s desugaring as a tranformation (from something 
that simply returns the value of property `constructor`)?

-- 
Dr. Axel Rauschmayer
[email protected]

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com



_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to