Re: RFC: Dropping Namespace
| From: | Robert Lemke | Date: | Wed, 05 Dec 2007 17:42:28 +0000 |
| Subject: | Re: RFC: Dropping Namespace | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-33741@lists.php.net to get a copy of this message | ||
Hi Sam,
Am 05.12.2007 um 14:51 schrieb Sam Barrow:
Autoload would work exactly the same with namespaces, just do a str_replace and replace "::" with "_".hmm, and what about this (please correct me if I'm wrong): <?php namespace T3::MyPackage::Controller; class Special extends Default { } ?> <?php namespace T3::OtherPackage::Controller; class Fancy extends Default { } ?> A search & replace of "Default" would replace both, T3::MyPackage::Controller::Default and T3::OtherPackage::Controller::Default - but they are not the same. The only way to refactor this would be by the help of a semantic-aware tool. Anyway, I'm not against namespaces but the way they are planned to be implemented currently I'm not really excited about them either. robert -- http://typo3.org/gimmefive http://buzz.typo3.org/people/robert-lemke/