Re: [CFV] how to mark protected items?
| From: | Daniel Convissor | Date: | Tue, 22 Jun 2004 20:19:36 +0000 |
| Subject: | Re: [CFV] how to mark protected items? | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-31114@lists.php.net to get a copy of this message | ||
On Tue, Jun 22, 2004 at 04:08:44PM -0400, Hans Lellelid wrote:
>
> They're screwed anwyay, Dan.
>
> Any PEAR package that is gonna upgrade to PHP5 is going to do so to take
> advantage of new language features.
In the long term, that's not necessarily the case.
> There is no easy migration path for
> user schmoe when all of a sudden the underlying package starts throwing
> PEAR_Exception instead of returning PEAR_Error.
Okay. But why add yet another bump in the road?
> IMHO upgradeablity should not be a consideration when designing coding
> standards
I disagree.
> That said it's a great opportunity to end non-applicable practices
> inherited from PHP4. I'd say the '_' on protected methods/properties
> (if it gains the needed votes) would be one of those ideas, a product of
> the limitations in PHP4.
The underscores are helpful cues even when using PHP 5.
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409