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

Fair enough — you can do that, which is nice, but in Rust it happens automatically. A program that attempts to concurrently mutate the same object without taking a mutex will always fail to compile (unless you hack around this restriction with unsafe) whereas in C++ you have to intentionally build the API that way.


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

Search: