obsoleting the "new" keyword

Mark S. Miller erights at google.com
Sun Jan 18 17:48:55 PST 2009


On Sun, Jan 18, 2009 at 4:35 PM, Brendan Eich <brendan at mozilla.com> wrote:

>
> We also allow keywords as property names in JS1.7+ and did for ES4 -- this
> relaxation from current context-free reservation of identifiers has been
> talked about for 3.1 too, and IIRC it was agreed to for Harmony at last
> summer's Oslo meeting.
>

It's in the ES3.1 grammar. In ES3.1, x.if is equivalent to x['if'], and
({if: x}) is equivalent to ({'if': x}).


-- 
   Cheers,
   --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20090118/824cd2cd/attachment-0001.html>


More information about the Es-discuss mailing list