3 ms·
> Compared to plain C, C++ tends to become unmaintainable... Yeah, true. Used to think otherwise, but experience shows over and over again this happens in most
by vardump 10y ago
> Compared to plain C, C++ tends to become unmaintainable...
Yeah, true. Used to think otherwise, but experience shows over and over again this happens in most large teams. C++ somewhat encourages too many abstractions and complicated control flow (exceptions, [multiple] inheritance, templates, ninja operator overloads). Building and linkage (especially against third party blobs) is also a big issue even in 2016. Builds are slow and binary incompatible between compiler versions and vendors.
> In theory, C++ can be as fast as C.
Actually, it can go both ways, C++ can be faster as well. For example when C++ enables inlining - std::sort beats idiomatic C qsort quite handily. Depends how you use it more than anything else.