Friday, November 14, 2008

Naming Conventions

One thing that has always bothered me about C++ is the actual name "C++". The ++ section of the name is an operator that increments the variable it is assigned with. In this case the name makes sense; C++ is a step up from C. The thing is that there are two types of ++'s:
* The postfix: C++
* The prefix: ++C

The two are very similar but there is a difference between them (or else what's the point in having them?!?). I wont go into the logistics, but in short, the prefix operator is faster than the postfix operator.

So why do we not call the language ++C?

No comments:

Post a Comment