4 ms·
While it's true that C++ still has lots of great things, the features aren't always directly comparable, due to C++'s existing semantics and commitment to backw
by steveklabnik 12y ago
While it's true that C++ still has lots of great things, the features aren't always directly comparable, due to C++'s existing semantics and commitment to backwards compatibility.
For example, if you move a uniq_ptr, it will become null, and using it will cause a segfault. In Rust, moving a Box<T> works just fine, because using it after the move is a compile-time error.