Re: Reply on "Who is using namespaces in PHP already?"
| From: | Jochem Maas | Date: | Mon, 15 Sep 2008 23:10:05 +0000 |
| Subject: | Re: Reply on "Who is using namespaces in PHP already?" | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-40525@lists.php.net to get a copy of this message | ||
Vesselin Kenashkov schreef:
Hi, At our company the majority of the projects in the last 4 months are using namespaces (we can afford using dev version of php, because we host the projects). Just to add my +1 into the count.care to elaborate? what are your experiences? have you run into any trouble? have you developed a list of do's and dont's? (as Karsten has)
Vesselin Kenashkov On Mon, Sep 15, 2008 at 5:26 PM, Karsten Dambekalns <karsten@typo3.org>wrote:Hi. Lukas asked on his Blog, so here goes my answer. We switched to namespaces last week for FLOW3 and all related packages. See http://forge.typo3.org/repositories/revision/21/1210 for the needed changes and http://forge.typo3.org/wiki/flow3-overview/Notes_on_using_PHP_namespaces for some notes on the implications. Currently we don't have any problems with use statements, as we still have fully qualified names almost everywhere, thus autoloading works as expected. Still, looking into the future I'd love to see an enhancement as proposed by Greg in http://marc.info/?l=php-internals&m=121527668606247 plus some way to get rid of having to use single classes if I could use some wildcard instead. Regards, Karsten -- Karsten Dambekalns Gimme Five! http://typo3.org/gimmefive