Why use C++ when C works for large projects equally well?

Posted by Karl on Programmers See other posts from Programmers or by Karl
Published on 2011-01-07T10:12:46Z Indexed on 2011/01/07 10:57 UTC
Read the original article Hit count: 235

Filed under:
|

Before I start, please DO NOT make this into a C vs C++ flamewar. This question has nothing to do with which language is better or not. Period.

I have read that C++ is said to be fit for large projects. After all, it makes managing code easier. OO and other features, for example the STL.

But then why use C++ when C works equally well for large projects? Take the example of the Linux kernel. Or GNOME. Or even Windows I guess, it is written in C right?

So why bother at all with the complexity of C++ (templates and all that), when C works well and this is not just a statement, but proper examples have been quoted. If it works for projects of magnitude of the kernel, why is C++ preferred or why is C not used for almost all projects?

© Programmers or respective owner

Related posts about c++

Related posts about c