On 9/11/12 12:54 AM, James Boyden wrote:
I would also argue that such a single-'let'-out-front concession
should not be applied to struct patterns:  One of the key benefits
of introducing 'let' in struct patterns is to disambiguate variable
bindings from struct field names, which requires having the 'let'
directly in front of the variable binding.

So you would write:

    let Foo { x: let x, y: let y } = ...;

?


Niko
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to