One more thought: Should the following assignments produce the same result?

     [x, y, z] = {length:0, 0:0, 1:1, 2:2}
     [x, y, z] = [].slice.call({length:2, 0:0, 1:1, 2:2})

Then the decision boils down to whether an array conversion happens (however 
implicitly) on the rhs or whether the lhs is syntactic sugar for
     x = rhs[0], y = rhs[1], z = rhs[2]

-- 
Dr. Axel Rauschmayer
[email protected]

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com



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

Reply via email to