let and strict mode

Allen Wirfs-Brock allen at wirfs-brock.com
Thu Nov 15 16:35:25 PST 2012


On Nov 15, 2012, at 4:17 PM, Brendan Eich wrote:

> Of course, 'let' short for 'letter' :-|.
> 
> Contextual keyword with [no LineTerminator here] after sounds like the plan. I'm curious whether you have already implemented this in Traceur?
> 
> /be

I wonder if the [no LineTerminator here] is really need in practice?

How often does

    /* whatever*/  ;
    let
      x = "abc";

actually occur in real code??

(I'm assuming that the JSC test was just making "let" a reserved id rather than a contextual keyword)

Allen







> 
> Erik Arvidsson wrote:
>> On Thu, Nov 15, 2012 at 2:49 PM, Allen Wirfs-Brock <allen at wirfs-brock.com <mailto:allen at wirfs-brock.com>> wrote:
>> 
>> 
>>    This is what TC39 agreed to try when we started down the 1JS path,
>>    with the expectation that implementation would explore the
>>    compatibility impact.
>> 
>> 
>> JSC tried making let a keyword and it broke things, forcing them to revert that.
>> 
>> http://trac.webkit.org/changeset/113352
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/listinfo/es-discuss
> 



More information about the es-discuss mailing list