News for hackers. Stuff that matters.
Re:Some Were Meant For C (2017) [pdf] by jandrewrogers on Monday March 01, 2021 @08:06PM (#26310674)
C and C++ are not the same case. Modern C++ supports fairly strict and exhaustive type safety that can robustly evaluate many types of safety at compile-time, if you choose to use it to its full capability. C doesn't even have these facilities.

Anecdotally, I haven't seen an open source C++ code base that is uses type safety to that extent but it is certainly possible.

Re:Some Were Meant For C (2017) [pdf] by SAI_Peregrinus on Monday March 01, 2021 @09:17PM (#26311175)
C++'s problem is that it still silently supports non-Modern style code, so the safety is opt-in. And you have to check everywhere for it. It's not as bad as C where the safety just doesn't exist, but it's not much better. As you noticed yourself, it's not actually used safely!