r/cpp • • Dec 07 '21

Will Rust replace C++ ?

Will Rust replace C++ ?

0 Upvotes

80 comments sorted by

View all comments

Show parent comments

24

u/_Js_Kc_ Dec 07 '21

To be fair, a steep initial learning curve is probably not where Rust falls behind C++.

13

u/Full-Spectral Dec 07 '21

Maybe a better way to look at it is that C++ may let you THINK you know C++, whereas Rust sort of forces you to look at the things that C++ lets you gloss over (potentially not even knowing you are glossing over them.)

1

u/RotationsKopulator Dec 10 '21

You can however still write sort of good code with a smaller subset of C++. Even "C with classes" does not necessarily imply poor code quality.

1

u/Full-Spectral Dec 10 '21

Sure, I'm definitely not one to throw every new C++ feature that comes out into the bowl and stir. My own code base, not being STL based, is very much in that vein. Not C with Classes, but avoiding the really heavy templatization and large amounts of potential undefined behavior because my stuff is safety first, not performance first.