3 ms·
>C++ also has complex object lifetimes but if you don't invoke that complexity you don't need to deal with it. I would tend to disagree? In C++, I regularly r
by theon144 6y ago
>C++ also has complex object lifetimes but if you don't invoke that complexity you don't need to deal with it.
I would tend to disagree?
In C++, I regularly ran into issues where I "invoked" the complexity with memory/object management completely incidentally, and as the saying goes, shot myself in the foot (or rather, both feet, because lifetime management issues often result in heisenbugs and other really nasty phenomena).
Rust makes that complexity explicit, which is really an analogous argument as with static/dynamic typing; it's not that the dynamic languages "handle typing for you", and "static" simply requires more work. Rather, you're forced to deal with it at the very start, instead of down the road.
Then again I'm rather new to Rust, so I might misunderstand you?
- EamonnMR 6y agoYou're quite right, but it's worth being mindful that for many projects, down the road never comes. It's a very expensive insurance policy.