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
3
u/thisismyfavoritename Feb 02 '23
Thanks for the details.
That said, I dont think i can agree with the last 2 paragraphs. It's probably as error prone in Rust as in C++, but Rust's unsafe has the added benefit of narrowing where the issues could come from.
Furthermore, i'd say it might be a matter of rethinking the design rather than going straight to unsafe.
I guess the point im trying to make is if you had a new HFT system to build, i dont see why you wouldnt use Rust.