Re:The Programming Languages Beacon
by rifung on Monday March 14, 2016 @03:27AM
(#11281491)
Could someone explain why C++ is used so often over C? Is it just because people want to use Object Oriented Programming?
[ Parent
| on HN ]
Re:The Programming Languages Beacon
by duncanawoods on Monday March 14, 2016 @03:39AM
(#11281523)
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.