Re: PEAR2 package naming standards (namespace usage)

From: Date: Wed, 27 Aug 2008 17:10:57 +0000
Subject: Re: PEAR2 package naming standards (namespace usage)
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-50655@lists.php.net to get a copy of this message
Trimming to point out a major misunderstanding of namespaces. David Jean Louis wrote:
Hey there, I really prefer the initial proposal (replace all _ with ::), IMHO the svn:externals problem should not dictate the namespace naming decision. With the current proposal, what if I want to do the following ? <?php // my script want to use Console_CommandLine *and* Console_Color use PEAR2::Console; $commandline = new CommandLine();
$color       = new Color();
// etc... ?> Namespaces have no relation to one another, each and every class has to be brought in with a use line.
so it would be use pear2::console_commandline::CommandLine; use pear2::console_color::Color There is no benefit to deep trees, these aren't Java packages or anything hugely useful. They are a method to type shorter class names in code and thats it. -josh

« previous php.pear.dev (#50655) next »