News for hackers. Stuff that matters.
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.
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
Re:Move, simply by Joker_vD on Tuesday February 18, 2020 @10:00AM (#22356492)
Rust completely dropped GC support in 0.12 — which was released on 9th October, 2014. That happened more than 5 years ago.