Re: [CFV] how to mark protected items?
| From: | Hans Lellelid | Date: | Tue, 22 Jun 2004 20:08:44 +0000 |
| Subject: | Re: [CFV] how to mark protected items? | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-31111@lists.php.net to get a copy of this message | ||
Daniel Convissor wrote:
Not in PHP 4. But when this poor shmoe upgrades to PHP 5, they're screwed.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. 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. IMHO upgradeablity should not be a consideration when designing coding standards that will apply to PHP5. PHP5 is an entirely different ballgame; the OO stuff is not at all backwards compatible, even if that's what Zend would like you to believe. 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. Hans