21st Century Digital Boy

July 5, 2007

PHP Namespace question

Filed under: PHP — 21cdb @ 8:59 pm

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 Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

You must be logged in to post a comment.

Blog at WordPress.com.