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;
I have to write:
let { x, y } = { x: 1, y: 2 };
Which violates DRY, or:
let x = 1; let y = 2;
Which is wordy.
Patrick
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev