new instantiation design alternatives

Domenic Denicola domenic at
Fri Sep 12 04:53:39 PDT 2014

From: es-discuss [mailto:es-discuss-bounces at] On Behalf Of Brendan Eich

> Ob. bikeshed: why not `new?` as the magic pair of tokens? Seems unambiguous given `new` as a reserved identifier since dayone.

This reads really well for the `if (new?) { ... }` case, but poorly for the `this = Object.create(new?.prototype)` case.

More information about the es-discuss mailing list