Patrick, would destructured tuples show the intent of code adequately? If i saw a destructured tuple at the top level my first impression of that code would be that the author wants to work with tuples and just wants to keep around the internal values as a convenience.
Keep in my mind that I've only started coding Rust code a week ago, but it I see it as "slightly confusing". ------Mensaje original------ De: Patrick Walton Remitente: [email protected] Para: [email protected] Asunto: Re: [rust-dev] getting rid of let a=3, b=4? (bikeshed alert) Enviado: 9 de abr de 2013 14:33 On 4/9/13 10:31 AM, [email protected] wrote: > This for is useful in algorithmically-intensive code where a lot of > variables are declared at the top level. Matrix algorithms come to > mind. I don't think it's a frequent use case but it's very useful > when it arises. Keep in mind that you can use destructuring tuples: let (x, y) = (1, 2); Patrick _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev Enviado desde mi BlackBerry de Movistar (http://www.movistar.com.ar) _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
