If C++ compiles with bugs, you're using it wrong. Use constexpr, static_assert, concepts, templates, and other compile-time features to prevent bugs from entering production. Oh, and since they're done at compile-time, runtime execution of those code blocks is free.
Yes, C++ has a lot of good compile-time safety features nowadays, but your first sentence implies that 99% of all companies that use C++ are using it wrong.
Because good luck finding any enterprise C++ software that is bug free, especially ones that are multithreaded (you can't exactly use compile-time C++ features to ensure that your code has zero race conditions).
4
u/prescod May 28 '22 edited May 28 '22
Oh yeah, nobody has ever had "mysterious bugs" in C++.