let and strict mode

Herby Vojčík herby at mailbox.sk
Fri Nov 16 10:23:09 PST 2012



Yehuda Katz wrote:
> Doesn't the same problem exist with:
>
>      var let = function() {};
>      let();
>
> Or:
>
>      var let = { it: "be" };
> let.it <http://let.it> // be

These seem to be parseable better (especially the latter), but how to 
distiguish if

   let [foo] = bar

is let with destructuring or assignment with index?

>
>
> On Fri, Nov 16, 2012 at 9:19 AM, Herby Vojčík <herby at mailbox.sk
> <mailto:herby at mailbox.sk>> wrote:
>
>
>
>     Kevin Smith wrote:
>
>               var let = [], num = 0;
>
>               let[num] = f();
>
>
>     Awww, that's hard. I am really curious how this one is solved.
>
>
>         - Kevin
>
>
>     Herby
>
> --
> Yehuda Katz
> (ph) 718.877.1325


More information about the es-discuss mailing list