Re: PEAR Coding Standards question
| From: | Joe Stump | Date: | Tue, 19 Aug 2008 16:54:51 +0000 |
| Subject: | Re: PEAR Coding Standards question | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-50564@lists.php.net to get a copy of this message | ||
On Aug 19, 2008, at 9:49 AM, Chuck Burgess wrote:
On Tue, Aug 19, 2008 at 11:39 AM, Kevin van Zonneveld < kevin@vanzonneveld.net> wrote:I never understood the prefixing of functions that are private or protected. They're clearly marked as such and, if you try to use one, you know instantly that you can't. These aren't the olden days of PHP4 (or Python) where you can run a "protected" or "private" method if you wish without the interpreter complaining. In fact, I dislike underscores so much I rarely if ever use private in my PEAR code. :) That being said, if you *wish* to prefix them then by all means have at it in my opinion (though our CS specifically reserves this in PHP5 code for private methods). --JoeWhy are the coding conventions so that I'm not allowed to prefix protected methods with an underscore?The decision on that was made on this old RFC [1]. Perhaps we should revisit it with a fresh discussion?