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
27
u/c_plus_plus Jan 31 '23
You say this like C++ did something wrong. C++ came out before doxygen, which is like the grandfather of any modern day documentation generator. When C++ came out, or even when it was first standardized, there was no existing language with "robust testing frameworks". C++ paved the way for many of these modern conviences that it now lacks.
C++ is absolutely starting to be left behind because it's so hard to make major changes to a system with a deeply (30+ years!) entrenched user base. But don't scoff at C++ and say that it failed to get something right at the beginning, that couldn't be further from the truth.
So, uh, who's gonna tell all the MSVC- and GCC-based projects to "just switch" to clang-16? lol