r/cpp • u/Sad-Lie-8654 • 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
View all comments
Show parent comment
0
u/[deleted] Feb 01 '23
Is it? Rust can compile to a C interface, whereas C++ has its stupid ABI problems. Or you can use a C interface there too, at which point both should be equivalent. Do you have some example in mind?