Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't think we disagree here. I agree that not using Rc<> is the optimal position but I find myself wondering how many Rust beginners got tangled up in lifetimes, gave up and went back to a garbage collected language. I think it's fine to make an on-ramp that's a little shallower.


I'd suggest using `.clone()` over `Rc` since it'll be easier. Rc is an optimization to make `.clone()` cheap, but the downside is it makes mutability more complex.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: