I know people love to talk about this topic. Looks like it just might happen in PHP6. Dmitry Stogov at Zend put this proposal on the devel list:
http://marc.info/?l=php-dev&m=118355320225178&w=2
New PHP Namespaces Proposal
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
New PHP Namespaces Proposal
(#10850)
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Oh!! Now I'm excited. I'm not going to get my hopes up too much though because I've seen the idea tossed around on the list more than once (and subsequently sniffed at more than once). This is the first time I've seen code suggested with any degree of realization though 
It looks like a suitably elegant way to make use of namespaces too. I'll be interested to see what happens (in terms of conflicts) if you try using __autoload() whilst in the scope of a particular namespace.
If they do implement this, it will be more of a selling point for me personally over the Unicode support.
EDIT | I've been checking out from CVS regularly too and checking the changelog in the hope of spotting some namespace mentions.... nothing so far though.
It looks like a suitably elegant way to make use of namespaces too. I'll be interested to see what happens (in terms of conflicts) if you try using __autoload() whilst in the scope of a particular namespace.
If they do implement this, it will be more of a selling point for me personally over the Unicode support.
EDIT | I've been checking out from CVS regularly too and checking the changelog in the hope of spotting some namespace mentions.... nothing so far though.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US