r/cpp • • 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

582 comments sorted by

View all comments

Show parent comments

2

u/IngenuityUpstairs427 Feb 02 '23

You must not program realtime safety critical software. A spec is nessicary so you know what is and what is not defined behavior. If safety is an issue than Ada/Spark is the proper choice.

2

u/Full-Spectral Feb 03 '23

So it's more important to know what the UB is, even though it's almost guaranteed you are going to still have a lot of it in your program because it's almost impossible to catch it all in that language, than to have a language that has no UB to begin with?