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

The reason it's frowned upon is that it makes the code not thread safe. This is fine in application code, but if you are a library author, you generally want your code to be as flexible as possible, and able to be used in various situations. Making the code not thread safe brings upon some limitations how the code can be used by your users. This is why using internal mutation sparingly is the default.


I’m not clear on what you mean it’s not thread safe. Arc<> is thread safe.




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

Search: