let and strict mode

Brendan Eich brendan at mozilla.com
Thu Nov 15 16:44:11 PST 2012


Allen Wirfs-Brock wrote:
> 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??

Who knows? We can chance it but should we? Optimize by daring fate, 
prototyping and spec'ing in draft-ES6, and if we get bad news late in 
the process, change course. I like it if the optimization wins. If it 
loses....

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

Right.

/be


More information about the es-discuss mailing list