strawman for the := operator

Brendan Eich brendan at mozilla.org
Thu Aug 9 11:29:16 PDT 2012


Matthew Robb wrote:
> Object.assign(obj, {...});
> same as
> obj.{...};

Not the same as Allen's proposed mustache form, which defined not 
assigned. But mustache was taken back to the lab for more work, and 
we're on to := now.

> Object.define(obj, {...});
> same as
> obj:{...};

No can do, this is ambiguous with a labeled statement.

> Specific method names for the Object.* could be decided upon. Would 
> also be nice, following the above, to have the following
>
> obj:prop = value;

Label again.

/be


More information about the es-discuss mailing list