3 ms·
The fact that Rust has traits and generics doesn't make it more complex than C++, because they substitute for C++ features that are even more complex (classes,
by roca 6y ago
The fact that Rust has traits and generics doesn't make it more complex than C++, because they substitute for C++ features that are even more complex (classes, virtual methods, templates, concepts).
I believe C++ is far more complex because, having programmed in C++ for 30 years and hanging out with other developers with similar levels of experience, I still trip over weird C++ features that I never knew existed. My latest example: Argument Dependent Lookup, which means f(a) and (f)(a) can wind up calling completely different functions. How many C++ developers know that?
In my experience, Rust has fewer complexities like that.