Re: Some PEAR remarks

From: Date: Wed, 17 Apr 2002 14:35:42 +0000
Subject: Re: Some PEAR remarks
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-1159@lists.php.net to get a copy of this message
On Wed, 17 Apr 2002 15:55:29 +0200, Vincent Oostindie wrote: >On Thu, 18 Apr 2002 02:08:47 +0200, Jason Lotito wrote: >>> A question in advance: why are member variables in PEAR prefixed with a >>> '_'? Sure this is useful in languages like Java or C++ where it's hard >>> to see which variable is a local one, an argument or a member, but in >>> PHP this distinction is already clear: all member variables are >>> prefixed with '$this->' inside a method. And if you use proper >>> encapsulation, member variables are never accessed from anywhere else. >>> (And very, very sadly, this is not the case in the PEAR library!) >> >> http://pear.php.net/manual/en/standards.naming.php > >I know that they're following a standard, but I question the standard, not >the fact that PEAR uses it :-) The coding standards have been questioned by a lot people so far, but they all did not succeed :-). A project like PEAR simply needs some guidelines concerning the coding style and we will not change them just because there are some people that don't like them. Please search the mailing list archives (http://marc.theaimsgroup.com/) for the flame wars and endless dicussions concerning this point. PLEASE don't start a yet another useless coding standard discussion. - Martin -- Martin Jansen, <mail@martin-jansen.de> http://www.martin-jansen.de/

« previous php.pear.general (#1159) next »