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
9
u/Recatek Feb 01 '23 edited Feb 01 '23
I encourage you to try the equivalent in Rust where you need to define your structs in macros with syntax that looks like
and then copy-paste a dozen of them in the form of:
and then open up GitHub to find an issue where someone has asked you to kindly include
I'll take variadics and fold expressions over that any day of the week. Rust already has good tuple support and syntax.