5 ms·
> Rc/RefCell/Box are verbose because they deal with shared ownership, and Rust forces you to solve problems around shared ownership that other languages don't.
by childintime 8y ago
> Rc/RefCell/Box are verbose because they deal with shared ownership, and Rust forces you to solve problems around shared ownership that other languages don't.
Would there be a space for a mode inside Rust, call it a DSL if you will, where Rust behaves like those other languages? I mean that in this mode it would use the heap by default and copying to not alert the borrow-checker?
- steveklabnik 8y agoIt could work, but there hasn't been a ton of demand for it. Yes, it might help at the very beginning, but people do learn and become productive without it. It'd also be a worry if libraries started doing stuff like this; it'd be harder to use from "normal" Rust.