On 9/17/11 11:59 AM, Marijn Haverbeke wrote:
- The implicit, clever approach: Notice that the only situation where you want to do this is when using a local variable (you can't move out of data structures) for the last time, and simply make the compiler optimize the last use of a variable into a move. We'll probably want to do this anyway, but the question is: Is it enough, or do people want to 'see' their move operations in front of them?
If an explicit copy operator is needed for uniques, then this isn't even ambiguous, is it? IOW the only thing that |x = y| with str/vec/unique pointer |y| can possibly mean is "move y", since if you wanted to copy it you'd have to say |x = copy y|.
Patrick _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
