3 ms·
The point is that the practices that almost unavoidably lead to bugs in C code are not even tempting in modern C++. So, if you are interested in correctness and
by ncmncm 7y ago
The point is that the practices that almost unavoidably lead to bugs in C code are not even tempting in modern C++. So, if you are interested in correctness and memory safety, stepping to modern C++ provides more value for time invested than the sum of most other choices.
Equating the two is extremely common, even by people who are certainly equipped to know better. When you feel a need to tar C++ as if it were C, you signal the weakness of your argument before you have even expressed it.
- klyrs 7y ago> you signal the weakness of your argument before you have even expressed it. Please turn down your flamethrower, that style of conversation is not welcome here.
- ncmncm 7y agoWriting "C/C++", in contexts where it is implied they have the same failure modes, is provocative. Don't like response, don't provoke. It is fine when talking about ABI or object-code generation.
- paulddraper 7y ago"Modern C++" is a term that mostly just means "C++ sans the C parts". So yeah, it's different than C.