github at esdiscuss.org (2013-07-12T02:25:50.903Z)
Yehuda Katz wrote:
> Doesn't the same problem exist with:
>
>      var let = function() {};
>      let();
>
> Or:
>
>      var let = { it: "be" };
>      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
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