On Wed, Jul 4, 2012 at 10:31 AM, Hemanth H.M <[email protected]> wrote:

> var a,b = 1; sets b to 1 and a is undefined, this is more C
> like semantics.
>
> Where as a,b = b,a is more pythonis; Well then a,b=[1,2] should
> make sense ?
>
> /me also agrees to var[a,b] = foo;
>

It might be helpful to read through the currently harmonized proposal for
destructured assignments:

http://wiki.ecmascript.org/doku.php?id=harmony:destructuring

Rick



>
> snip
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to