4 ms·
I wish Rust had syntax or a directive to make Rcs a bit less obtrusive.
by teaearlgraycold 1y ago
I wish Rust had syntax or a directive to make Rcs a bit less obtrusive.
- ameliaquining 1y agoThis is being worked on: https://rust-lang.github.io/rust-project-goals/2025h1/ergonomic-rc.html https://rust-lang.github.io/rust-project-goals/2025h1/ergono...
- rnikander 1y agoInteresting. My projects would benefit from those more convenient clones into closure captures. The other point where Rc is uglier than, say, Swift, is the explicit `.borrow()` and `.borrow_mut()` everywhere. I wonder if that could also be made more convenient/high-level without sacrificing the control over high performance (like C++) that got me to use Rust in the first place.