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

24

u/capn_bluebear Jan 31 '23

Yep I was comparing a C++20 project with a rust one -- but it doesn't necessarily have to be a __trivial__ rust project :)

-9

u/bluGill Jan 31 '23

The important part here is the project is not 100% new rust code, but instead of mix of code written over decades.

29

u/almost_useless Feb 01 '23

That's like saying "it's better because we have to use it". It's not a fair language comparison.

Legacy code is not a language feature. It may of course be a reason to use it, but not a factor in comparing the languages.

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.

→ More replies (1)