PHP Namespace question

The PHP world is talking about namespaces again. Here’s what I don’t get: why do we need a require, if we already “spell” the file’s physical path? After all, we already know where the files live, right?In short, why can’t ‘$fred = new Foo::Bar;’ automagically include $INCLUDE_PATH/Foo/Bar.php?Works in Perl, Python, Ruby…. 

No Comment

No comments yet

Leave a reply

You must be logged in to post a comment.