destructuring: as patterns?

Herby Vojčík herby at mailbox.sk
Wed Apr 18 09:02:56 PDT 2012



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?

>
> Herby


More information about the es-discuss mailing list