I completely agree with you Allen. new-less construct is an anti pattern.

On Tue, Jul 16, 2013 at 5:13 PM, Allen Wirfs-Brock
<[email protected]> wrote:
> I understand that fully supporting @@create requires a lot of work but
> until then we should at least throw when called as function to allow
> us to get out of this mess eventually.
>
>
> For background here is how new Foo()  is now supposed to work:
>     let newObj = Foo[@@create]();  //allocate an initialized Foo instance.
>     Foo.call(newObj);                         //initialize the newObject
> )
>
> It's not very complicated.

The semantics and the spec are simple but...

...it does require support for symbols, shared symbols between realms,
updates to new without any perf regression.

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

Reply via email to