Re: Extensions calling C++

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Extensions calling C++
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-23958@lists.php.net to get a copy of this message
On Mon, 10 Jul 2000, Zeev Suraski wrote: > At 23:56 09/07/2000, Sascha Schumann wrote: > >Some parts of Zend use C++. But I dislike the () behind the *_EXTERN_C > >macros which are otherwise quite convenient. > > We seem to have a disagreement about this one. Personally, I think that > any macro that has side effects (i.e., any macro which is anything beyond a > definition of a static value), should have parentheses at its end. It > makes the code *MUCH* more readable. > Unfortunately, not all of the PHP 3.0 macros respected this standard (e.g., > RETURN_FALSE, which should have been RETURN_FALSE()), but we're definitely > pushing that any new macros would use this convention. Unfortunately, thirty years of C development disagree with you. What a macro does should be obvious from the macro name.

« previous php.dev (#23958) next »