Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40131 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1297 invoked from network); 29 Aug 2008 12:24:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Aug 2008 12:24:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.94.56 as permitted sender) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Linux 2.6 Received: from [85.214.94.56] ([85.214.94.56:37268] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0F/EC-44384-D6AE7B84 for ; Fri, 29 Aug 2008 08:24:14 -0400 Received: from MBOERGER-ZRH (unknown [193.142.125.1]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id 84FE011DCF5; Fri, 29 Aug 2008 14:24:10 +0200 (CEST) Date: Fri, 29 Aug 2008 14:24:12 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <112434946.20080829142412@marcus-boerger.de> To: Stanislav Malyshev CC: Hannes Magnusson , Felipe Pena , Marcus Boerger , Lukas Kahwe Smith , PHP Internals List , =?iso-8859-1?Q?Johannes_Schl=FCter?= In-Reply-To: <48B6E3A8.8030903@zend.com> References: <64B4CECA-980F-4738-8B05-E7935741D7BB@pooteeweet.org> <7f3ed2c30808271132x7443ea3gc4df903a3a2c73ec@mail.gmail.com> <322434106.20080827234712@marcus-boerger.de> <1219885057.5961.13.camel@pena> <7f3ed2c30808272332m3066d1e5s677bb91f4b80c4b5@mail.gmail.com> <48B6E3A8.8030903@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] alpha2 scheduled From: helly@php.net (Marcus Boerger) Hello Stanislav, Thursday, August 28, 2008, 7:43:04 PM, you wrote: > Hi! >> I'm really sorry, but I have to ask. >> Since you can detect that this is a nested namespace, why can't we allow it? > Because that's not how model was designed and it creates all kind of It wasn't designed to have multiple namespaces at all to begin with. But as now have them we should at least think of what we want... > trouble with name resolution. Basically, you get potentially infinite > resolution path. You don't want to go there. And frankly, there's > absolutely no need. How so? namespace foo { namespace bar { class baz {} } } According to your won words it is all about name substitution. Explicitly you were talking about simple text replacement. Now that in mind I see and easy replacement here. That is 'bar' becomes 'foo::bar' and 'baz' obviously becomes 'foo::bar::baz' or can you find something else? Actually we already have this: namespace foo; namespace foo::bar; class baz {} And that does exactly what I described above. But maybe I just to stupid :-) Best regards, Marcus