News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Elizabeth Smith's Blog:
My five (well four and one-half) issues with namespaces
September 09, 2008 @ 08:46:35

Even with the release of PHP 5.3 looming closer and closer on the horizon, there's a few things that are still being worked through - one of which is the much touted namespace support. Elizabeth Smith has posted a few of the issues that she's having with how they're being implemented, four and a half of them, to be exact.

The first thing to clarify is that I like the new implementation overall, it's fairly light and although it isn't really namespacing or packaging in any sense of the word, the best way to describe it is aliasing, it does help keep code easy to use. In fact I have a couple of projects and even a PHP extension that's all namespaced code.

Her list of five (four and a half) things are:

  • multiple namespaces in a file
  • you can't have ANYTHING before the namespace statement but an opening <?php tag
  • The autoload and resolution paths
  • Functions in namespaces
  • No use * and three million use statements (this is the one with the workaround - class_alias)
0 comments voice your opinion now!
issue namespace implementation multiple autoload function use


blog comments powered by Disqus

Similar Posts

PHP Town Hall: Episode 30: Specs, Implementations, and New Engines OH MY!

Matthew Weier O'Phinney's Blog: Migrating OOP Libraries and Frameworks to PHP 5.3

PHPMaster.com: Autoloading in PHP and the PSR-0 Standard

David Coallier's Blog: PHP Namespaces (Part 2: Namespace constants)

Dougal Campbell's Blog: Suggestion: WordPress Option Namespacing


Community Events





Don't see your event here?
Let us know!


podcast developer community library code framework list project laravel threedevsandamaybe series application configure introduction interview api language wordpress release bugfix

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework