4 ms·
> Does C-like syntax not adequately inform a compiler that wants to implement something like Rust's borrowing? It appears to work for `std::unique_ptr` and `st
by steveklabnik 7y ago
> Does C-like syntax not adequately inform a compiler that wants to implement something like Rust's borrowing? It appears to work for `std::unique_ptr` and `std::move` semantics.
It does not. Note that Rust's move semantics are different than C++'s, Rust has what C++ folks call "destructive move."