Re: Re: namespaces?
| From: | Stig S. Bakken | Date: | Mon, 16 Jul 2001 00:01:07 +0000 |
| Subject: | Re: Re: namespaces? | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-804@lists.php.net to get a copy of this message | ||
"Tomas V.V.Cox" wrote:
>
> Andi Gutmans wrote:
> >
> > Guys,
> >
> > So does anyone have any ideas what you feel needs to be done in this area
> > in order to accommodate pear?
> > I'd be very interested in proposals which can fit in the current PHP
> > language model. Don't forget to take into account conditional include()'s.
> >
> > Andi
> >
>
> Just some strange thoughs:
>
> - Automatic includes. For example, if I do: $foo = new Bar, it could
> search in the registered classes stack, find the file and do
> "require_once" of it automaticly.
I did some work to prepare pear for autoloading, basically the pear
installer would check which constants, functions and classes a file
defines and registers this in a dbm file. While it sounds cool, as a
programmer I would be mch more confident using "use" to tell which
classes I intend to use in a script. Too much autoloading magic may
easily get out of hand.
- Stig