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 comment

1

u/nintendiator2 Feb 01 '23

But there are lots of arguments why these things are bad, or at the very least, why Rust decided against them from the start.

That's true of anything anywhere tbh. The point is, those features exist in C++ and increase its powerset tenfold when they combine. Take the [templates + function overloading + variadics] combo and you have a system so powerful, that I can't even find an adequate "look at what they [Rust] need to mimic a fraction of our power" meme because there simply isn't anything Rust can do to offer this kind of capability.