Blog
Namespaces already in PHP 5.3
2007-09-29 16:35:28 by Martynas Jusevičius
As some people have already reported, PHP 5.3 has namespace support already submitted to its codebase. This is great news, since PHP was really lacking this feature.
Comments (4)
Why do you consider this to be a lacking feature of PHP? Do you know how this implementation is going to fix anything? If so what is it going to be fixing ?
Thanks :)
David,
2007-09-29 19:26:33 by Martynas
I don't think namespaces are going to fix something, but I hope they will add clarity and allow a nicer design.
For example, we have 2 applications, frontend and backend, which have quite a few equally-named classes. I cannot include them at the same time because the names will conflict. To do that, I first have to rename half of those classes. So I think namespaces will be helpful in such situations.
They might also help in packaging/library creation by showing explicitly what code came from whom and where does it belong.
And in general, I like PHP moving in the Java/.NET direction :D
2007-09-29 22:51:57 by JeanGlode
MIHO I prefer when php moving in a pythonic way...
Namespace tutorial
A complete tutorial on this topic: http://blog.felho.hu/whats-new-in-php-53-part-1-namespaces.html
.

Why?
2007-09-29 18:04:42 by David Coallier