let and strict mode

Peter van der Zee ecma at qfox.nl
Thu Nov 15 16:43:19 PST 2012


On Fri, Nov 16, 2012 at 1:35 AM, Allen Wirfs-Brock
<allen at wirfs-brock.com> 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??

Um, if that's a concern, I often see multiple var declarations start
with a newline after var, to line up all the variable names (including
the first)...

var
  foo=1,
  bar=2,
  zee=...;


More information about the es-discuss mailing list