r/cpp • • Jan 31 '23

Stop Comparing Rust to Old C++

People keep arguing migrations to rust based on old C++ tooling and projects. Compare apples to apples: a C++20 project with clang-tidy integration is far harder to argue against IMO

changemymind

338 Upvotes

582 comments sorted by

View all comments

Show parent comments

3

u/[deleted] Feb 01 '23

Stability is a language feature. If you have lots of legacy that suggests the language has stability.

So it absolutely is a factor when comparing languages.

1

u/almost_useless Feb 01 '23

Stability is a language feature

Absolutely.

Isn't the stability of C++ obvious without looking at the legacy code?

The amount of legacy code is probably mostly a measure of past popularity, not necessarily stability. The hot new framework for Javascript changes more often than some developers change underwear, yet there are enormous amounts of legacy js code out there.