|
Posted by Chung Leong on 11/18/27 11:44
Tim Martin wrote:
> Used judiciously these sorts of techniques can open up all sorts of
> possibilities (I've seen generic type containers implemented in pure C
> using macros), but the general consensus is that the potential for
> misuse is far too great and modern language constructs have obviated all
> the genuine needs for such techniques.
Personally I really dislike this brief in the CS circle that somehow
programmers need to be saved from themselves. It arises from the same
elitist, I-know-what's-best-for-you mentality prevalent in academia.
More than just a tool, these ivory tower geeks want a computer language
to enforce their values and way of thinking.
[end of rant]
C style preprocessing could come in very handy in solving compatibility
issues. Anyone who has had to get a PHP5 class to work in PHP 4 knows
what I mean. A couple #define's would have taken care of the syntatical
differences, which can now only be resolved with some ugly eval()
statements.
Navigation:
[Reply to this message]
|