Re: CS changes for PHP5? was Re: [PEAR-CVS] cvs: pear(ZEND_ENGINE_2) /XML_Transformer
| From: | Martin Jansen | Date: | Sun, 19 Jan 2003 10:30:57 +0000 |
| Subject: | Re: CS changes for PHP5? was Re: [PEAR-CVS] cvs: pear(ZEND_ENGINE_2) /XML_Transformer | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-12595@lists.php.net to get a copy of this message | ||
On Sun Jan 19, 2003 at 11:2701AM +0800, Alan Knowles wrote:
> >
> >
> >- var $_caseFoldingTo = CASE_UPPER;
> >+ private $caseFoldingTo = CASE_UPPER;
> >
> >
> >
> Interesting dropping the $_ prefix on privates.. - while it is a little
> throwback to PHP4 not having real privates, it did have heratige in the
> hungerian (or whatever it's called) naming strategy.. - and does enhance
> program readiblity...
>
> Is the plan to drop this bit of the code standards for PHP5? (I for one
> would miss it :)
I'm definitively for keeping it. Even with the "private"
keyword in front, the underscore improves readability a
lot.
--
- Martin Martin Jansen
http://martinjansen.com/