Archive

Posts Tagged ‘Inline function’

Hacrobatics

It’s funny how attitudes, preferences, and likes-dislikes change over time via personal experience and the acquisition of new knowledge. Having transitioned from a C background over to C++ quite awhile ago, I used to think pre-processor macros were a kool feature that came along for the ride. However, after having been burned multiple times by scope-ignoring macros, I learned to hate the damn little buggers. The scorchings made me fully appreciate the addition of “const“, templates, and inline functions to C++ in order to wean people off of “hacros“.

Maintaining a “hacro” laced program can drive anyone up a wall because:

I’m bummed, but not  surprised, at how many people still think that “hacros” are a kool and useful feature of C++.

<span>%d</span> bloggers like this: