destructuring: as patterns?

Irakli Gozalishvili rfobic at gmail.com
Wed Apr 18 09:10:11 PDT 2012



On Wednesday, 2012-04-18 at 09:02 , Herby Vojčík wrote:

>  
>  
> Herby Vojčík wrote:
> >  
> > Maybe allowing
> > let {b, b:{x,y}} = obj;
> > would be enough. It sort-of comforms to existing syntax as well as
> > semantics.
> >  
>  
>  
> BTW, if you use var instead of let, if already works out of the box (in  
> FF11 firebug console; just tried), so why include as if it already is  
> there, albeit in different form?
>  

OMG, you're right!!! I could swear it did not worked before as I had unsuccessful attempts to use that form. I guess it's ok if Brendan did not knew it either :D  
  
>  
> >  
> > Herby
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org (mailto:es-discuss at mozilla.org)
> https://mail.mozilla.org/listinfo/es-discuss
>  
>  


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120418/e88fd04a/attachment.html>


More information about the es-discuss mailing list