Re:The borrowchecker is what I like the least about Rust
by lblume on Saturday July 19, 2025 @05:06PM
(#44619405)
Arc<Box<T>> is redundant, for the contents of the Arc are already stored on the heap. You may be thinking of Arc<Mutex<T>> for multithreaded access or Rc<RefCell<T>> for singlethreaded access. Both enable the same "feature" of moving the compile-time borrow checking to runtime (Mutex/RefCell) and using reference-counting instead of direct ownership (Arc/Rc).
[ Parent
| on HN ]
There are no comments on this comment yet.