I know I'll get flamed/modded down for this, but it needs to be said: there is no reason for new apps to be written in C. C++ can do everything that C can do, just as efficiently; it's easier to read, which means a code review is more effective; language features and the STL reduce the need for explicit dynamic memory allocation, which is a source of bugs in C; the language is a better match than C to modern, object-oriented methods of analysis and design; - I could go on, but shouldn't need to.
by Anonymous Coward writes:
on Saturday September 04, 2004 @08:21PM (#10159743)
C++ suffers from all the memory bugs of C, because it allows all the same things. A good C++ programmer wont use those things, just like a good C programmer wont do stupid stuff in C.
But C++ is not inherently safer than C, it's just as dangerous as C and has the added bonus of being complicated, unweildy and inconsistent.
Yet another library for an obsolete language (Score:1, Troll)
Re:Yet another library for an obsolete language (Score:2, Interesting)
A good C++ programmer wont use those things, just like a good C programmer wont do stupid stuff in C.
But C++ is not inherently safer than C, it's just as dangerous as C and has the added bonus of being complicated, unweildy and inconsistent.