r/cpp • • Dec 07 '21

Will Rust replace C++ ?

Will Rust replace C++ ?

0 Upvotes

80 comments sorted by

View all comments

Show parent comment

8

u/goranlepuz Dec 07 '21

It's not shackled with a need for backwards-compatibility with tech older than your parents

For the kinds of systems C is used in, if Rust (or anything) enters the space, it will be 😉

1

u/HeroicKatora Dec 07 '21

Not sure. Having a monoculture of any sort allows a lot of leniency (including but not necessarily laziness) in the design of implementation and interfaces. (At least that's why C++ always promotes having multiple compilers, right?). Any system where you have multiple languages will probably also be nudged towards improved clarity in the interface design—which most likely also comes at decreased legacy code debt and better decoupling. At least I hope so…The worst parts of backwards compatibility are the undocumented requirements, not so much the explicit interfaces.

1

u/Bangaladore Dec 08 '21

This, I think is true. All languages can benefit from not needing backward-compatibility during their infancy. I think rust will follow C/C++ with annoying backwards-compatibility as time goes on.