3 ms·
> and calling it C++ We used to call it C+. It was code that could not be compiled by a C compiler. But at the same time was painfully obvious that it was not
by kartan 10y ago
> and calling it C++
We used to call it C+. It was code that could not be compiled by a C compiler. But at the same time was painfully obvious that it was not proper C++.
- pzh 10y agoI think there is this misconception that there is a 'proper C++'. C++ was designed to support various programming styles, including this 'transitional' style where you have a C codebase that you slowly convert to a more object-oriented style, but overall it still remains an ugly mix of the two. What makes C++ proper is pretty much what code style and best practices your organization/project decides to adopt. For some projects, 'proper' may be object-oriented C++ with class hierarchies, whereas for others it may be a more functional or template-based style that doesn't even use classes a lot.
- astrodust 10y agoAs C++ features started to creep back into C you'd see a lot more of this. The // comment identifier is perhaps the most famous of these.