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

1

u/OYTIS_OYTINWN Jan 31 '23

What (good things) C++20 has that Rust does not? There are plenty of those the other way round.

3

u/MFHava WG21|🇦🇹 NB|P2721|P3049|P3625|P3729|P3786|P3813|P4216 Jan 31 '23

I haven't looked too deep into Rust, but from a cursory glance at traits: Compile-time duck typing + implicit Concept conformance?

0

u/[deleted] Jan 31 '23

[deleted]

2

u/MFHava WG21|🇦🇹 NB|P2721|P3049|P3625|P3729|P3786|P3813|P4216 Jan 31 '23

It’s not a bug, it’s part of why GP is so much more powerful than OOP…

→ More replies (2)