3 ms·
If you can learn to use C++ correctly then, with the right time investment and motivation, then you can learn rust without problems. The compiler mostly compla
by ithkuil 3y ago
If you can learn to use C++ correctly then, with the right time investment and motivation, then you can learn rust without problems.
The compiler mostly complains about things you wouldn't do in C++ anyway because it would either crash right now or it would be brittle code that would be easy to break later.
I knew enough C++ when I learned rust that I never perceived the lifetimes to be something that gets in the way.
My major pain points were:
* Leaning a new standard library, the names of common functions and common tasks to do things like handling strings, iterators etc. Nothing weird, just lots of new stuff to learn
* figuring out which libraries outside the stdlib are actually a de-facto stdlib that it's ok to just use/build around (assert_matches, bytes, ...)
* endless despair of async rust. Anyway you need to compare apples to apples, with the total cesspool that c++ coroutines are