proposal: Object Members
tj.crowder at farsightsoftware.com
Tue Jul 24 07:15:30 UTC 2018
On Tue, Jul 24, 2018 at 8:00 AM, Michael Theriot
<michael.lee.theriot at gmail.com> wrote:
> `Reflect.construct` allows subclasses to obtain internal slots without
> `super()` / class syntax.
Indeed, Darien pointed that out as well (and if you two hadn't, I would
> This is the first I have heard `class` is anything but sugar.
The accurate statement would be that `class` lets you do things you
couldn't do in ES5. But so does `Reflect.construct`. I believe it was
important to the "no `new`" crowd that a non-`class` mechanism existed for
creating objects using Error and Array as prototypes.
-- T.J. Crowder
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss