On Mon, July 23, 2007 3:13 am, Alexey Zakhlestin wrote:
> In reality, it is rarely (almost never) needed to import all the
> classes. Usually you need 2–4 per file, not more, and importing just
> what you really need is the step to a clean design.
>
> You don't need to import every class which is used implicitly, only
> those which are explicitly used.

I've run into "enough" cases in several languages/projects over the
years where I end up using damn near every class/function in a
moderate-sized library.

And you'd certainly want to do that if you're, say, writing some kind
of higher-level glue-wrapper API sort of thing -- which is a not
uncommon use-case.

While it may not meet the 90% rule, it's super-painful for that 10%
for any decent-sized library :-(

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to