Remix.run Logo
veltas 4 hours ago

Although some people, like Bjarne Stroustrup, object to the term C/C++, it's a bit like Richard Stallman objecting to the term "Linux". The fact is it can mean "C or C++", and I wouldn't assume the author thinks they're the same, but they're talking about both of them together in the same sentence. This seems reasonable given this is about undefined behavior, and it's trivial to accidentally write UB-inducing code in C++ even with modern style (although I'd say you should catch most trivial cases with e.g. ubsan, and a lot of bad cases would be avoided with e.g. ranges, so I think the article is exaggerating the issue).

stackghost 4 hours ago | parent [-]

Well, the author explicitly refers to "C/C++" as one language:

>After all, C/C++ is not a memory safe language.

thomashabets2 an hour ago | parent [-]

That is a typo, that I think I introduced when I went back to clarify that it applies to C++ too.

Will fix it.