Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33747 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 982 invoked by uid 1010); 5 Dec 2007 18:05:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 967 invoked from network); 5 Dec 2007 18:05:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2007 18:05:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:49470] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/99-20707-F48E6574 for ; Wed, 05 Dec 2007 13:05:04 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 5 Dec 2007 20:05:00 +0200 Received: from [192.168.16.91] ([192.168.16.91]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 5 Dec 2007 10:04:57 -0800 Message-ID: <4756E849.9050904@zend.com> Date: Wed, 05 Dec 2007 10:04:57 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Robert Cummings CC: internals@lists.php.net References: <200712042226.08192.larry@garfieldtech.com> <1196829384.14915.6.camel@blobule> <4756E11B.8030302@zend.com> <1196876641.14915.40.camel@blobule> In-Reply-To: <1196876641.14915.40.camel@blobule> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 05 Dec 2007 18:04:57.0028 (UTC) FILETIME=[5829B040:01C83769] Subject: Re: [PHP-DEV] RFC: Dropping Namespace From: stas@zend.com (Stanislav Malyshev) > I think you're confusing parsing for grokking. Namespace support is > merely candy coating for naming conventions. Namespaces have the same Yes, and PHP is merely a candy coating for shoving electrons around silicon chips. Makes as much sense. Yes, namespaces deal with naming. No, namespace in not just a naming convention - it is also the mechanics allowing to use these conventions consistently and conveniently. > collision problems that class naming and function naming have. Only Only if you insist on *not* using the namespaces to solve collision problems. For the 1001th time - you can not expect to put all names into global space and have the language by some magic to sort it out and go both ways. One name can mean only one thing, namespaces or not. Namespaces just allow you more convenient rules for defining what name means what thing. > confined to the name of the namespace itself. This is identical to using > a prefix when naming your classes or functions. The only thing Only if you had auto-prefixing and aliasing with underscore prefixes. If you had, that would be exactly namespaces with _ as separator. I like :: better. > namespaces bring to the table beyond that, is the ability to shorthand > the class names within the namespace... as I said candy coating. If You can say it as many times as you like, it doesn't make it true. It is the capability that enables one to simplify the code by avoiding spelling out the full name every time. > everyone had named their classes and functions with appropriate prefixes > then this would be a non-issue. Seriously, how were so many people so As I said, namespaces is not only names, so it is not true. > Hope this clears up your confusion, although I doubt you were > particularly confused. I wasn't confused, I was surprised that after all the explanations people still make such strange claims which have nothing to do with what namespaces really are. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com