Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39893 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3236 invoked from network); 12 Aug 2008 16:44:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Aug 2008 16:44:39 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.163 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.163 il-gw1.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.163] ([212.25.124.163:9291] helo=il-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E4/C7-04075-5FDB1A84 for ; Tue, 12 Aug 2008 12:44:39 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 12 Aug 2008 19:45:26 +0300 Received: from [192.168.16.110] ([192.168.16.110]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 12 Aug 2008 09:45:23 -0700 Message-ID: <48A1BE23.8070102@zend.com> Date: Tue, 12 Aug 2008 09:45:23 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Etienne Kneuss CC: hannes.magnusson@gmail.com, Lukas Kahwe Smith , Marcus Boerger , internals@lists.php.net References: <909776579.20080803142659@marcus-boerger.de> <840985F2-A701-4BE4-91F6-F6B39048CF9B@pooteeweet.org> <48A09FF4.1030101@zend.com> <7f3ed2c30808111411t51553771j389f05c3436bc625@mail.gmail.com> <48A0C415.9090104@zend.com> <48A0D579.2000000@zend.com> <48A0DBAE.2010401@zend.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Aug 2008 16:45:23.0028 (UTC) FILETIME=[D0525940:01C8FC9A] Subject: Re: [PHP-DEV] Inconsistencies in 5.3 From: stas@zend.com (Stanislav Malyshev) Hi! > namespace A { > code > } > > namespace B { > code > } > > code > > seems equivalent to Again, my point exactly. The above construction - which {} syntax encourages you to use - should never be used at all! > My point is that if we are going to allow multiple namespaces per file > solely on the perspective of permitting packaging, we should also > allow mixing namespaced and non-namespaced code for that same > perspective, and the current syntax is not going to allow that. Why should we? I don't think we should. Yet less we should encourage it. In fact, I already regret we allowed it in first place - despite dozens of explanations, even the members of the core PHP team seem to be unable to understand seemingly simple concept that this is to be used only for packaging. Somehow the idea that it is the preferred way to use namespaces seems to be one many people are stuck to. So what happens when they start educating other users - I'm afraid to imagine. I suspect this feature would be abused on the large scale. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com