Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Regardless, code that doesn't use unsafe can't have two threads concurrently writing the same memory.

It's a bit messier than that. Basically the only concurrency-related bug I ever actually want help with from the compiler is memory ordering issues. Rust chose to make those particular racey memory writes safe instead of unsafe.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: