top | item 41399379

(no title)

_answ | 1 year ago

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.

discuss

order

steveklabnik|1 year ago

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