logoalt Hacker News

steveklabnikyesterday at 4:02 PM1 replyview on HN

I mean, data races are undefined behavior in C++ the same way that they are in unsafe Rust. The languages are equivalent there.


Replies

bluGillyesterday at 4:05 PM

Only if there is a data race - if there is no data race C++ lets you do it. Rust doesn't let you do things that don't have a race but cannot be proven within the context of rust to not have a data race.

show 1 reply