6 ms·
> C++ is just C with extra notation for easy modeling of Classes and Objects. That's far from true today, and I'd even argue it hasn't been true since very ear
by chi3 9y ago
> C++ is just C with extra notation for easy modeling of Classes and Objects.
That's far from true today, and I'd even argue it hasn't been true since very early on. Simple example to prove my point: RAII.
- qdoop 9y agoSo you know https://en.wikipedia.org/wiki/Resource_acquisition_is_initialization https://en.wikipedia.org/wiki/Resource_acquisition_is_initia... Good for you. "Object Oriented Programming puts the Nouns first and foremost. Why would you go to such lengths to put one part of speech on a pedestal? Why should one kind of concept take precedence over another? It's not as if OOP has suddenly made verbs less important in the way we actually think. It's a strangely skewed perspective." from https://en.wikipedia.org/wiki/Object-oriented_programming https://en.wikipedia.org/wiki/Object-oriented_programming criticisms says a lot.
- chi3 9y agoThat's quite irrelevant to the conversation though, we weren't talking about whether OOP is good or not. C++ is very far from "C with classes" today.
- qdoop 9y agoOk but still OOP is the central idea and also there is this trend the most annoying one to always try modeling everything as classes and objects.
- leetcrew 9y agoplenty of c++ is just functions wrapped in namespaces. namespaces alone are a significant advantage over c.
- qdoop 9y agoJust to make it clear. The original poster is trying to learn C++ and knows basic C. He also claims that he finds C++ complicated. By doing an over simplification like C++ is just an C with OOP features motivates him to learn and focuson the points it differs from C. Also in the broader sense Namespaces is a way to group and organize Classes and and Objects. Certainly C++ is a powerfull and full featured language but this not what we discuss here. PS For the history 1)Also Borland took this approach when introduced C++ 2)X11 windows is a classical example of C code written to give a feeling of using C++