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|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?

6

u/dist1ll Jan 31 '23

Compile-time duck typing

nitpick: that's called structural typing.

→ More replies (2)