Re:Move, simply
by pornel on Tuesday February 18, 2020 @04:15AM
(#22354588)
This is what I like about Rust: there are no copy constructors. There are no "moved-from" object values. Moves are guaranteed to be nothing more than a shallow `memcpy`. Structs aren't even copyable unless the author explicitly says so, so if a move compiles, I know it's safe and efficient.
[ Parent
| on HN ]
Re:Move, simply
by richard78459 on Tuesday February 18, 2020 @06:56AM
(#22355281)
But the language is garbage collected, that's not desirable in the domain c++ operates