Disappointed with PHP namespace seperator decision

Haven’t blogged on PHP in awhile, so here goes…

It seems the PHP team has decided on using \ as the namespace separator.  I’m still flummoxed as to why :: or ::: wasn’t chosen.

So now we’ll have things like my\package\name but will we be able to use dynamic namespaces?  Like my\package\$name ?

I just have a strange feeling this is going to end up causing unintended or unforeseen problems (like many PHP decisions end up doing, which only get rectified years later).

So when will the natural successor to PHP arrive?  Natural successor would be something that can play well in virtual hosting environments, have basic understandabilty (/foo/bar.php means that bar.php is in the foo directory), act like glue between disparate external libraries (GD, etc.), be reasonably fast and open source?

I dunno.  Sometimes I get the feeling PHP continues to succeed more because of the relative failures of the alternatives.  :)


I'm currently working on a book for web freelancers, covering everything you need to know to get started or just get better. Want to stay updated? Sign up for my mailing list to get updates when the book is ready to be released!

Web Developer Freelancing Handbook

Share and Enjoy:
  • del.icio.us
  • DZone
  • Facebook
  • Reddit
  • StumbleUpon
  • Digg
  • Simpy
  • Technorati

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">



0.16450595855713