For an existing project that I'm trying to get new devs to start being productive in, it's pretty much a similar list of commands they need to learn/run. After that, C++ eclipses rust in productivity.
Sure, the memorized happy path works most of the time, but that's true of Rust and most other languages. The distinguishing attributes are how the system deals with changes. In this respect cargo is a lot less fragile and wonky than C++ tools, which were developed ad hoc.
New developers don't go reading the ISO standard of a language before they attempt making a change, but that's of course what Rust requires before you can make sense of any syntax or compiler error. Language features aren't the only predictors of productivity. Why isn't everything written in Haskell or Lisp already?
No, but it's extremely easy to trip over these complex issues in C++. Only if you write in a very limited subset of modern C++, or have years of experience untangling these messes, are you even reasonably likely to avoid those pitfalls. Not to mention the unholy mess that is templates.
Rust is also known for fairly good error messages, so I'm not sure what exactly you think is lacking there.
Yes, I agree just adding features does not make a language better. That is exactly why I'm not a big fan of C++ despite having a fair amount of experience in it. Rust has (mostly; obviously nothing can be perfect) added features which are useful and general. Things like proper sum types, tuples, and pattern matching, are not just gimmicks or insanely complex abstractions - they are extremely practical.
Rust managed to cram in a huge amount of complexity before it was even able to get a usable networking library without any restraint (or even signs of restraint) other than "we can do this cool programming concept too".
AFAIK Rust has several usable networking libraries.
And yes, Java, Python, or JS are more productive than C++ (and certainly of rust), that's why people use them. Is there any easier way to manage memory than having a garbage collector do it for you? What's the point here?
I'm saying C++ has many areas for improvement, and Rust (or any language less encumbered than C++) is positioned to address them. The fact that other languages which were not particularly popular for literally decades, some of them rather poorly designed, have managed to do this, is evidence that Rust can do so, too. If nothing else at this point I'd imagine Rust will occupy an important niche much like Go has.
0
u/[deleted] Feb 19 '20
[deleted]