2 ms·
> the mental load of Rust is a lot higher than C++'s and it takes a long time for regular people to become as proficient in it as they are having written C++ fo
by Yoric 4y ago
> the mental load of Rust is a lot higher than C++'s and it takes a long time for regular people to become as proficient in it as they are having written C++ for 15 years
There are very good reasons to use C++ rather than Rust for some projects, typically interoperability, or developer already having experience in C++, as you mention.
However, having coded in both C++ and Rust professionally, my experience is that switching Rust has liberated much of my brainpower to concentrate on actually implementing useful stuff, so I have to strongly disagree on "mental load".
What is true is that, for a while after switching, getting code to compile in C++ is easier than in Rust. Took me maybe 6 months to 1 year before it became natural? However, as we all know, there is a huge difference between writing code that builds and writing code that works. In my experience, that difference is order of magnitudes larger in C++ than in Rust.