4 ms·
> Getting rid of the syntactic difference between moving and copying seems like a huge step backwards. Did you ever use Rust back when you had to write "move"?
by pcwalton 10y ago
> Getting rid of the syntactic difference between moving and copying seems like a huge step backwards.
Did you ever use Rust back when you had to write "move"? I did. When you wrote stuff like:
let (move x, move y) = (move z.a, (move z.b).append(move z.c));
It got old fast.
- Gankro 10y agoAdmittedly there's still a syntactic difference between move and copy -- with Swift and C++'s definition of copy. Rust calls that Clone, though. :)