Annex A of 5th Edition

Rick Waldron waldron.rick at gmail.com
Sat Sep 8 09:36:03 PDT 2012



On Saturday, September 8, 2012 at 11:05 AM, Dean Landolt wrote:

> 
> 
> On Sat, Sep 8, 2012 at 8:54 AM, Jason Orendorff <jason.orendorff at gmail.com (mailto:jason.orendorff at gmail.com)> wrote:
> > On Sat, Sep 8, 2012 at 4:06 AM, Joseph Spencer
> > <js.developer.undefined at gmail.com (mailto:js.developer.undefined at gmail.com)> wrote:
> > > Note: NaN and undefined aren't included in A.1 Lexical Grammar;
> > >       however, Infinity is.  Is this by design?  My proposal adds them
> > >       to A.1.
> > 
> > NaN, undefined, and Infinity aren't keywords in JS.  They're just
> > global constants (see 15.1.1.1 through 15.1.1.3.)
>  
> 
> They could be contextual keywords inside of modules, which would fix the wart going forward w/o breaking backcompat.

I agree with the motivation, but having "two faces" (contextual and not) may  create confusion. 

Rick 
> 
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
> 
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120908/1a2b6aa2/attachment.html>


More information about the es-discuss mailing list