Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26491 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42029 invoked by uid 1010); 10 Nov 2006 21:57:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 42013 invoked from network); 10 Nov 2006 21:57:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Nov 2006 21:57:34 -0000 Authentication-Results: pb1.pair.com header.from=tony@tonybibbs.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tony@tonybibbs.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain tonybibbs.com designates 216.51.246.17 as permitted sender) X-PHP-List-Original-Sender: tony@tonybibbs.com X-Host-Fingerprint: 216.51.246.17 www.iowaoutdoors.org Linux 2.5 (sometimes 2.4) (4) Received: from [216.51.246.17] ([216.51.246.17:44385] helo=iowaoutdoors.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/4F-27611-DC5F4554 for ; Fri, 10 Nov 2006 16:57:34 -0500 Received: from localhost (localhost [127.0.0.1]) by iowaoutdoors.org (Postfix) with ESMTP id B6E2D45E6C; Fri, 10 Nov 2006 15:57:31 -0600 (CST) Received: from iowaoutdoors.org ([127.0.0.1]) by localhost (iowaoutdoors.iowaoutdoors.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10234-28; Fri, 10 Nov 2006 15:57:29 -0600 (CST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by iowaoutdoors.org (Postfix) with ESMTP id 6CC5345BB1; Fri, 10 Nov 2006 15:57:29 -0600 (CST) Message-ID: <4554F5C7.1080705@tonybibbs.com> Date: Fri, 10 Nov 2006 15:57:27 -0600 User-Agent: Thunderbird 1.5.0.7 (X11/20060918) MIME-Version: 1.0 To: Patrick Mueller CC: internals@lists.php.net References: <4554AE0D.4080600@caedmon.net> <4554B9B5.5090305@caedmon.net> <20061110182358.GB20309@bantha> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at iowaoutdoors.org Subject: Re: [PHP-DEV] Namespaces in PHP 6 - ++$take From: tony@tonybibbs.com (Tony Bibbs) While I could munge the class names in one or more packages as you suggest then I'm in maintainability hell because when I need to update one of the other packages (for security, features or bugfixes) you have to do the name munging again. C'mon, that ain't right. Next excuse? --Tony Patrick Mueller wrote: > Daniel T. Gorski wrote: > > I would claim exactly the opposite. > > That's because you already get scoping on names, for free, when you use > objects. The method and field names. Of course, for static methods and > fields you'll need to reference the class name again ... so don't do > that :-) > > There would typically be a one time 'hit' in your code for a long, > prefixed named used as a constructor, or possibly a static method called > on a factory. After that, if you're dealing with object instances, then > instead of function names (which would need to also use a longish > prefix, because they are scoped globally), you can use plain old short > method names. >