2 ms·
If C and C++ standardization had included both languages since the beginning, compatibility could have been a thing but it didn't so the languages have diverged
by avadodin 1y ago
If C and C++ standardization had included both languages since the beginning, compatibility could have been a thing but it didn't so the languages have diverged since C-with-classes.
I don't understand why the C standard has to get bogged down with bizarro-world-C restrictions from C++.
It's 2025, people have to give up on C/C++.
- IsTom 1y agoC++ routinely includes C headers and this would affect that. I think most things valid in C, but not C++ don't affect declarations.
- johnisgood 1y ago> It's 2025, people have to give up on C/C++. No, people should not give up on C. ??? You do realize there are a lot of projects written in C, right? Including Linux and most of its programs / utilities that you may be using. I have new projects written in C, too, and you can do a lot to check for potential bugs using various flags to GCC / Clang, among other things like cppcheck and the rest. No, people should not give up on C. C is really good to know, for many reasons... even if you are not going to use it.
- bmacho 1y agoI believe GP meant that the idea of C/C++ should be abandoned, that is, that C and C++ are compatible languages. GP thinks that they should diverge more when necessary, none of them should be held back for the compatibility with the other.
- johnisgood 1y agoWell, I agree with that.