Allen Wirfs-Brock wrote:
I honestly forget how we decided to go for let at start of statement
followed by [ -- but I do recall we agreed not to have
name-binding-sensitive parsing(!). I.e., we would not look for 'var
let = ...' and treat 'let' in that (hoisted) scope as a non-keyword.
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-expression-statement
<http://people.mozilla.org/%7Ejorendorff/es6-draft.html#sec-expression-statement>
let [...
is not an ExpressionStatement. I requires two token look-ahead for
this one special case.
Thanks. I should have looked -- at this point es6-draft seems to have
almost all of the wanted answers. Great work, keep going!
/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss