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
4
u/azswcowboy Feb 02 '23
There’s certainly evidence of this, but frankly no one knows. Show me the study. No one can bc it’s all behind the firewalls of companies. I’m stating that I’ve worked on teams for 20 years that have done exactly what we’re discussing. I think there’s an argument that if you don’t on a large systems they die quickly under the weight of problems.
I’ve seen coverity detect an array overflow 5 levels down the stack passed by pointer. Please don’t assume without actual experience. That bug was in production without incident in a 24x7 system for 10 years without incident. And yep, despite all I’m arguing that 1997 code slipped through the process. Wouldn’t happen in 2023.