New PHP Namespaces Proposal

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

New PHP Namespaces Proposal

Post by Christopher »

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
(#10850)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

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.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

:D awesome (me too chris)
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

I think it is interesting that the examples they give are for the Zend Framework. When all the other framework builders were asking for namespaces the Zend guys said it wasn't really necessary. But now they seem to think it is a good idea. ;)
(#10850)
Post Reply