2 ms·
What are these costs? Performance costs? Most of C++ abstraction are zero costs. There is always the possibility of misusing them, but you can also misuse C lib
by varajelle 5y ago
What are these costs?
Performance costs? Most of C++ abstraction are zero costs. There is always the possibility of misusing them, but you can also misuse C libraries.
Learning costs? This is compensated by the fact that you don't have to re learn each project convention in C to emulate the same feature.
Compile time costs? Yeah, that can be annoying.
Costs of more bugs? In my experience, the better type system makes it unlikely.
- Y_Y 5y agoIntroducing complexity into the build system, error messages, my mental model, interoperation between different parts of the code, other developers are often unfamiliar with less popular parts of the language, modern stuff especially sucks for portability between compilers and OSes. That's just my experience of course, and it doesn't mean I don't profit from writing and selling cpp-based software every day.
- publicola1990 5y agoYes, also the huge benefits C++ offers in structuring large programs makes it well worth it to switch, even if one does not want the more fancy features of it.