| ▲ | bluGill 14 hours ago | ||||||||||||||||
> What concepts are those? Data can be modified by any thread that wants to. It is up to you to ensure that modifications work correctly without race conditions. In rust you can't do this (unsafe aside), the borrow checker enforces data access patterns that can't be proved correct. Again let me be clear: the things rust doesn't allow are hard to get correct. | |||||||||||||||||
| ▲ | steveklabnik 14 hours ago | parent [-] | ||||||||||||||||
I mean, data races are undefined behavior in C++ the same way that they are in unsafe Rust. The languages are equivalent there. | |||||||||||||||||
| |||||||||||||||||