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

Simple != idiomatic. It's perfectly idiomatic to `Arc<Mutex<Box>>` in Rust, and it is more complex because it deals with more concerns than a simple reference, namely being thread-safe. Sometimes you need that, sometimes not, but you have to be explicit about it.


There’s no reason to have a Box<T> there, because Arc already boxes.




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

Search: