2 ms·
Could I ask why? do lifetimes not do it for you?
by el_oni 5y ago
Could I ask why? do lifetimes not do it for you?
- throwaway894345 5y agoNot OP, but lifetimes are pretty brutal in many cases. Consider deserializing a struct with fields that are borrowed--I'm not sure if it's straight-up impossible or just prohibitively difficult, but it's painful. Not an issue with a GC language. I'm still rooting for Rust, but it's not for everything (yet).
- KingOfCoders 5y agoLife times are either easy for trivial matters or add a lot of boilerplate in the other cases. Many people just go RC<> but then you have RC<> everywhere. I do understand the motivation to have lifetimes and no GC, and it's cool, but it makes things that are trivial in a language with GC often difficult in Rust (the problem might be with me only as I've stopped working with C around 1995 and have been on GC/automatic RC since then, starting with Perl).