News Feed
Sections




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

SitePoint PHP Blog:
Are PHP Namespaces Really So Bad?
August 13, 2009 @ 09:29:14

In this new post to the SitePoint PHP blog, Craig Buckler asks a question about one of the newest features of PHP, namespaces - are they really so bad?

PHP developers have been demanding namespaces for some time. As PHP applications have grown larger and more complex, namespaces have become essential to prevent code clashes. [...] Unlike C# and Java, PHP has to retain compatibility with non-namespaced code. That has been achieved and you can choose whether to use namespaces or not.

He includes an example of the method that was previously considered (the double-colon) and the final spec using the slashes.

0 comments voice your opinion now!
namespace example use


blog comments powered by Disqus

Similar Posts

Stefan Priebsch's Blog: TDD in a self-experiment

Rasmus Lerdorf's Blog: ZeroMQ + libevent in PHP

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

PHPBuilder.com: Error Handling in PHP 5

Jan Lehnardt's Blog: Using the Zend Framework with Code Igniter (an alternative)


Community Events





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


series list interview community code refactor developer introduction podcast threedevsandamaybe install opinion framework laravel language testing wordpress release unittest experience

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