3 ms·
Disagree, 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
by hn_go_brrrrr 4y ago
Disagree, 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.