Re: PEAR Coding Standards question

From: Date: Tue, 19 Aug 2008 22:22:49 +0000
Subject: Re: PEAR Coding Standards question
References: 1 2 3 4 5 6 7 8  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-50576@lists.php.net to get a copy of this message
On Aug 19, 2008, at 3:11 PM, Paul M Jones wrote:
No need for snarkiness, Joe. ;-)
I always have a need for a little snark when it comes to PEAR. It's the only way I can possibly maintain my sanity.
(OK, maybe that was retaliatory snarkiness -- sorry, could not resist. ;-)
Fair enough ;-)
2.) The underscore does *nothing* to indicate if it's protected or private.
It does if we say it does, but only as a point of style.
I wasn't clear. $_foo tells me *nothing* about whether $_foo is, in fact, private or public. Which, I think, makes it useless. It reminds me of a coder I used to work with who insisted on prefixing all protected and private member variables with 'p' (e.g. $pFoo) to which I retorted, "But 'protected', 'public' and 'private' all start with 'p'!" At any rate, I've clearly pissed everyone off with my sarcasm so I'm dropping this as well. At least every knows where my vote will fall. --Joe

« previous php.pear.dev (#50576) next »