You are here: Re: Macros in php « PHP Programming Language « IT news, forums, messages
Re: Macros in php

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация