andrea.giammarchi at gmail.com
Fri Mar 15 19:49:09 PDT 2013
I agree on that and on top I would rather throw if `new` is used ... but I
understand on being permissive, is just weird `Object()` instead of `new
Object()` won't be accepted anymore, but for generators there is such
exception. This is all I was trying to say.
On Fri, Mar 15, 2013 at 3:48 PM, Brendan Eich <brendan at mozilla.com> wrote:
> I don't know what you meant below in the first paragraph, but I'm going to
> assume you agree that 'new' should not be required for generators. :-|.
> Andrea Giammarchi wrote:
>> (sorry, I sent by accident) I meant native requires `new` and there is
>> already a subset, generators, that are flexible as native constructors are
>> now (e.g. Object() instead of new Object())
>> anyway, better than "mandatory `new`" so ...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss