Re: kick-off
| From: | Stig Bakken | Date: | Mon, 28 Feb 2000 18:23:08 +0000 |
| Subject: | Re: kick-off | ||
| References: | 1 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-32@lists.php.net to get a copy of this message | ||
David Sklar wrote:
>
> Allowing functions outside classes could make the namespace pollution pretty
> hairy, this way people can pretty much use any code from PEAR without worrying
> about collisions with any pre-existing code they have.
>
> That said, does it make sense to prefix all PEAR object names with something?
> It's a lot more typing and might make the code uglier, but ensures that as
> long as people don't write packages on their own that start with that prefix,
> the packages won't step on each other. (i.e. the DB_mysql class gets called
> "P_DB_mysql" or "PEAR_DB_mysql" or whatever..)
Yuck, I really don't think we should do that. I feel bad enough having
people type "DB_foo::bar()" already. :-)
- Stig