On Aug 11, 2011, at 5:31 PM, Patrick Walton wrote:
> On 8/11/11 4:10 PM, Marijn Haverbeke wrote:
>> As for destructuring, records seem to work very well there. In most
>> cases, you'll use the field names for your variables, so you get
>> simply
>>
>> let {key, val} = someexpression();
>
> Also, what I'd like to do is this:
>
> let x, y = 1, 2;
JS1.8.x today:
let [x, y] = [1, 2];
Optimizes to avoid array construction.
Wish we didn't have [] all over, but I foolishly cloned C/C++/Java's comma
operator.
/be
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev