2 ms·
This is only true in cases where a single ownership model makes sense. In cases where it doesn't, there is a definite overhead. I think even the strongest Rust
by foldr 8y ago
This is only true in cases where a single ownership model makes sense. In cases where it doesn't, there is a definite overhead. I think even the strongest Rust advocates would not deny the existence of this overhead. They'd just point out that you'd have the same overhead in C++, but without the compiler helpfully telling you when you've made a mistake.
I'd also add that there are (small) warts on Rust's current implementation of borrow checking which everyone agrees are minor annoyances, even to experienced users:
https://github.com/rust-lang/rust/issues/43234 https://github.com/rust-lang/rust/issues/43234
Judging by that issue thread, some of these issues are about to be fixed.