Re: Re: PEAR2 Coding standards, Autoloading and Namespaces

From: Date: Sun, 13 Apr 2008 03:01:04 +0000
Subject: Re: Re: PEAR2 Coding standards, Autoloading and Namespaces
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-49785@lists.php.net to get a copy of this message
Helgi Þormar Þorbjörnsson wrote:
However, I am not sure one would want to use a third level of namespace. An advantage to PEAR2::File::CSV_Foo Is that it gets placed at the same location in the file system, but that class can access other classes in the PEAR2::File namespace without using their fully qualified class names. Introducing a third namespace: namespace PEAR2::File::CSV; Isolates the classes inside the namespace from the ones in other namespaces (including PEAR2::File).
    
That's what bothers me with those damn namespaces, isolation; Not sure what they are suppose to be solving at this rate except for a lot of back and forth arguing ;-D PEAR2::File:CSV_Foo looks more appealing at this rate I would agree that PEAR2::File::CVS_Foo looks more appealing
Maybe someone could make some real examples based on some current pear packages to get an idea on how namespaces could actually work. -josh

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