Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: