You never know me. php 4 doesnt have namespace, it was just an example. zend framework dont use namespecaes yet... and classe names get longer for example.
a think that macros in the framework, not in the user (programmer) space are usefull sometimes. as i sad before.. RET_IF_ERR is very clean and anyone can understand it. as well as framewrok methods need to be understand, some macros will too 2010/12/24 Nicolas A. Bérard-Nault <nic...@gmail.com> > This has been brought up countless times and has always been rejected > (browse the archives if you aren't convinced). > > Anyhow, I just hope I never have to maintain code you write in this > fashion. Pre-compilation macros are very out of character in the dynamic > languages paradigm and I doubt they'd be useful in any case. The examples > you gave convinced me once and for all that this is a very² bad idea. > There's a reason why no modern language uses three letters tokens for common > statements, I'll let you guess what it is. > > Anyhow, merry Christmas. > > P.S.: SCOPE_CLASS ? Have you ever heard of namespaces ? > > On Wed, Dec 22, 2010 at 12:11 PM, Mathias Grimm <mathiasgr...@gmail.com>wrote: > >> I want to request a C/C++ feature that i think is good. >> >> MACRO >> >> <?php >> MACRO('PF','private function _'); >> MACRO('SCOPE_CLASS','class MyProject_'); >> >> class UseMacro >> { >> PF preSave($object) >> { >> //... >> } >> >> } >> >> SCOPE_CLASS Internal >> { >> >> } >> >> I don know if there is a RFC for this feature. >> > > > > -- > Nicolas A. Bérard-Nault (nic...@gmail.com) >