PHP 6 now has namespace support checked into CVS. Unfortunately, they opted for the easy route: a single namespace construct at the top of a file declares the namespace for everything contained within that file. In other words, completely contradictory to every other construct in the language. It also limits you from ever using two namespaces within the same file. And all for no good reason. I even got involved and posted to the php.internals mailing list (unsurprisingly, with little, if any, effect).


4 Comments so far

  1. n1zyy on July 13th, 2007

    You could always take your programming to the next level and write your own? 😉

  2. andrew on July 16th, 2007

    My own language? Or my own namespace implementation for PHP?

  3. […] going to apologize in advance for bringing this up again, but there’s been more talk on the php.internals list about the namespace patch that […]

  4. […] including multiple files and concatenating those files into a single file, mainly because of the aforementioned […]

Leave a Reply