Re: RFC: Dropping Namespace
| From: | Robert Lemke | Date: | Wed, 05 Dec 2007 17:56:23 +0000 |
| Subject: | Re: RFC: Dropping Namespace | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-33746@lists.php.net to get a copy of this message | ||
Hi Larry,
Am 05.12.2007 um 18:09 schrieb Larry Garfield:
yes, of course you're right, it's always a chicken-and-egg problem. I was talking from my PHP user's perspective here .... However, since I didn't stumble over any satisfying refactoring tool for PHP yet, I don't have much hope that this will change soon. Anyway, lack of tools is of course not an argument to add namespaces support or not. But it is one for using it or not. robert -- http://typo3.org/gimmefive http://buzz.typo3.org/people/robert-lemke/Finally, another important reason for us to not use namespaces is the lack of available refactoring tools. Imagine you want to rename a class "T3_Cool_Fancy_Stuff" to "T3_Cool_Fancy_Tool". A global search / replace and renaming the class file will usually do - if you use the full class name everywhere. However, just trying to search and replace "Stuff" will probably break your code.How can there be "available refactoring tools" that account for namespaces when released PHP doesn't have namespaces yet?