On Tue, Jul 24, 2018 at 8:00 AM, Michael Theriot
<[email protected]> 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
have. :-)

> 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
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to