News for hackers. Stuff that matters.
Re:C++ Considered Harmful by huhtenberg on Friday September 26, 2008 @03:32PM (#316419)
> What's wrong with C?

Mostly ignorance of the rant authors :) In fact, one way to view C++ is as a beefed up C. Specifically a moderate use of the following simplifies life quite a bit and retains almost all benefits of C -

* templates instead of macros

* pure classes for the callbacks instead of function pointers with void pointer contexts

* standard inline functions

* STL containers (not perfect from memory utilization and perspective, but typically are ok)

Exceptions can also come handy, but these require a lot of moderation if used in a fastpath code.

There are no comments on this comment yet.