Hacker News new | past | comments | ask | show | jobs | submit login

Could someone explain why C++ is used so often over C? Is it just because people want to use Object Oriented Programming?



OO, constants, exceptions, stronger typing e.g. templates and associated libraries of containers, booleans, references, new operator, don't have to decl every local var at a top of function etc. For many of us, C++ was a dramatically nicer experience for building very large code bases.

There are "C programmers" who are really using "C++ in C style" and don't realise what C++ brought to the table. Some C++ features have now been included into C.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: