Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31234 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99812 invoked by uid 1010); 24 Jul 2007 03:32:00 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 99797 invoked from network); 24 Jul 2007 03:32:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2007 03:32:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain l-i-e.com from 67.139.134.202 cause and error) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:2983] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B7/72-11831-DA275A64 for ; Mon, 23 Jul 2007 23:31:58 -0400 Received: (qmail 208 invoked by uid 98); 24 Jul 2007 03:32:00 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.01 (clamdscan: 0.88.7/3741. Clear:RC:1(127.0.0.1):. Processed in 0.197557 secs); 24 Jul 2007 03:32:00 -0000 Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 24 Jul 2007 03:32:00 -0000 Received: from 209.254.223.2 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Mon, 23 Jul 2007 22:32:00 -0500 (CDT) Message-ID: <50856.209.254.223.2.1185247920.squirrel@www.l-i-e.com> In-Reply-To: References: <46A31D95.2080407@fischer.name> <46A42220.7010600@zend.com> <46A45B12.80402@zend.com> Date: Mon, 23 Jul 2007 22:32:00 -0500 (CDT) To: "Alexey Zakhlestin" Cc: "Jeremy Privett" , "Stanislav Malyshev" , "Derick Rethans" , "Markus Fischer" , "internals" Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] Question about Namespace patch From: ceo@l-i-e.com ("Richard Lynch") 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?