RE: [PEAR-DEV] PHP5 and namespaces for PEAR packages.
| From: | Lukas Smith | Date: | Fri, 04 Apr 2003 07:17:15 +0000 |
| Subject: | RE: [PEAR-DEV] PHP5 and namespaces for PEAR packages. | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-14872@lists.php.net to get a copy of this message | ||
> From: Leandro Lucarella [mailto:luca@llucax.hn.org] On Behalf Of
Leandro
> Lucarella
> Sent: Friday, April 04, 2003 6:51 AM
> Jesus M. Castagnetto, el jueves 3 de abril a las 17:36 me escribiste:
> > For example, we could use:
> >
> > namespace PEAR:Math {
> > class Vector {
> > ...
> > }
> > }
> >
> > or
> >
> > namespace Math {
> > class Vector {
> > }
> > }
> >
> > I'd like the first option, because it makes it simpler to have a
> Math::Vector
> > class that is not from PEAR (for example)
>
> I agree.
+1 for PEAR::Math::Vector
regards,
Lukas