4 ms·
I think Rust (or a new Rust-like language) could potentially be improved significantly by having language-level sugar for things like Rc<RefCell<T> Arc<Mutex<T>
by nicoburns 6y ago
I think Rust (or a new Rust-like language) could potentially be improved significantly by having language-level sugar for things like Rc<RefCell<T> Arc<Mutex<T>> or even some kind of Gc<T>.
- DougBTX 6y agoThere are experiments for a Gc<T> here: https://github.com/Manishearth/rust-gc https://github.com/Manishearth/rust-gc
- db48x 6y agoIf you find yourself wishing you didn't have to type some combination of types so often make a type alias. But the primary reason there's no built-in shortcut is that you might want to compose them in a different order.