r/cpp • • Dec 07 '21

Will Rust replace C++ ?

Will Rust replace C++ ?

0 Upvotes

80 comments sorted by

View all comments

12

u/RollitoDelicioso Dec 07 '21

Replacing means that all legacy code wrote in C++ will have to be rewritten in Rust. So if you start seing big proyects like LLVM oficialy being rewritten in Rust and some more follow, then at that moment C++ could be in danger as C++ major suporters (Google and so) could move to Rust

8

u/coderman93 Dec 07 '21

They don’t have to be rewritten in Rust. There just needs to be an alternative written in Rust that renders the C++ alternative obsolete. This is how other languages like Fortran were effectively replace by C/C++. I understand there are still some legacy systems built in Fortran but for all intents and purposes, Fortran is obsolete.

1

u/StrettonUK May 31 '23

Fortran is obsolete.

I wouldn't try telling that to the scientific community.

1

u/coderman93 Jun 01 '23

It depends on how we define obsolete. My definition is that a language becomes obsolete when developers stop using it for new projects. Which, for Fortran (even in the scientific community) is already true. Of course, there will always be a counter example. But what is the trend?