2 ms·
I meant ownership as implemented in Rust. I am perfectly fine with ownership models of C++ and some other languages.
by FpUser 4y ago
I meant ownership as implemented in Rust. I am perfectly fine with ownership models of C++ and some other languages.
- charcircuit 4y ago>I meant ownership as implemented in Rust. It's the same thing in Rust and C++. There is no difference conceptually.
- hn_go_brrrrr 4y agoDisagree, unless we're including Rust's unsafe. Excluding that, you need to understand what the Rust compiler is able to prove is safe. In C++, you "just" need to prove to yourself that it's safe. It's a very different experience writing code.
- Yoric 4y agoSo perhaps "ownership rules" is the wrong vocable for this. Maybe "ownership proofs"?
- charcircuit 4y agoIn Rust you need to understand borrowing to write programs that compile. In C++ you need to understand borrowing to avoid writing programs that use undefined behaviour. Yes, it's a different experience, but both have the same concept of borrowing that you must understand.