Re: Re: PEAR2 Coding standards, Autoloading and Namespaces
| From: | Jeff Moore | Date: | Sat, 05 Apr 2008 22:47:54 +0000 |
| Subject: | Re: Re: PEAR2 Coding standards, Autoloading and Namespaces | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-49650@lists.php.net to get a copy of this message | ||
On Apr 5, 2008, at 10:19 AM, Travis Swicegood wrote:
The only valid reason for not doing it is that it might be confusing to those who have never seen namespaced code. One option to remedy that is to take the approach of Java packages where everything lower case until the object. Using your example: pear2::foo::Foo That clearly delineates what is the package and what is the class while also happening to be easier on the eyes.Travis, I quite like the lowercasing of namespaces to give them a naming pattern distinct from class. There's no reason why the fully qualified class name should require more shifted characters to type than not. Best Regards, Jeff