Comment by empath75
5 days ago
> Congrats, rustc forced you to wrap all your types in Arc<Mutex<_>>, and you no longer have data races.
Or you can just avoid shared mutable state, or use channels, or many of the other patterns for avoiding data races in Rust. The fun thing is that you can be sure that no matter what you do, as long as it's not unsafe, it will not cause a data race.
No comments yet
Contribute on Hacker News ↗