Re: Question about Namespace patch

From: Date: Tue, 24 Jul 2007 03:32:00 +0000
Subject: Re: Question about Namespace patch
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-31234@lists.php.net to get a copy of this message
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?

« previous php.internals (#31234) next »