Linked by Thom Holwerda on Fri 16th Jan 2009 09:52 UTC
General Development The concept of Namespaces provides a way to help avoid problems with multiple functions, classes, and constants of the same name being defined multiple times. PHP 5.3 borrows much of the syntax and design of Namespaces from other languages â€" most notably C++. However, it does deal with Namespaces in a somewhat unique way, which may cause problems for those familiar with Namespaces. This article takes a close look at PHP V5.3 namespaces, which is one of the most anticipated and the most debated feature in this release of PHP.
Permalink for comment 343974
To read all comments associated with this story, please click here.
Here come the trolls
by Nycran on Sat 17th Jan 2009 11:33 UTC
Nycran
Member since:
2006-02-06

It never ceases to amaze me that every time there's a PHP article on OS news, a bunch of people come into the thread who clearly don't like PHP, with the sole intention of bad mouthing it rather than contributing to any useful conversation. It would be nice, if just for once, people stayed on topic.

At first I thought the back slash was a bit ugly, but really it's no different from what some file systems use to separate levels of folders.

Folder\File

Namespace\Function

I think we just need to get used to it.