Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32277 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54552 invoked by uid 1010); 12 Sep 2007 01:40:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54537 invoked from network); 12 Sep 2007 01:40:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Sep 2007 01:40:26 -0000 Authentication-Results: pb1.pair.com header.from=larry@garfieldtech.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=larry@garfieldtech.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain garfieldtech.com from 204.127.200.83 cause and error) X-PHP-List-Original-Sender: larry@garfieldtech.com X-Host-Fingerprint: 204.127.200.83 sccrmhc13.comcast.net NetCache Data OnTap 5.x Received: from [204.127.200.83] ([204.127.200.83:56321] helo=sccrmhc13.comcast.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/94-33962-98347E64 for ; Tue, 11 Sep 2007 21:40:25 -0400 Received: from earth.ufp (c-71-228-13-89.hsd1.il.comcast.net[71.228.13.89]) by comcast.net (sccrmhc13) with ESMTP id <2007091201402201300hc28ue>; Wed, 12 Sep 2007 01:40:22 +0000 Received: from localhost (localhost [127.0.0.1]) by earth.ufp (Postfix) with ESMTP id D9801D8227 for ; Tue, 11 Sep 2007 20:40:21 -0500 (CDT) Received: from earth.ufp ([127.0.0.1]) by localhost (earth.ufp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SkeOf6Y6EF2c for ; Tue, 11 Sep 2007 20:40:21 -0500 (CDT) Received: from vulcan.ufp (vulcan.ufp [192.168.42.4]) by earth.ufp (Postfix) with ESMTP id AAC3ED8160 for ; Tue, 11 Sep 2007 20:40:11 -0500 (CDT) To: 'PHP Internals' Date: Tue, 11 Sep 2007 20:40:10 -0500 User-Agent: KMail/1.9.6 References: <46E5D163.4050800@zend.com> <1869442285.20070911113436@marcus-boerger.de> In-Reply-To: <1869442285.20070911113436@marcus-boerger.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-ID: <200709112040.10581.larry@garfieldtech.com> Subject: Re: [PHP-DEV] multiple namespace per file From: larry@garfieldtech.com (Larry Garfield) On Tuesday 11 September 2007, Marcus Boerger wrote: > Hello Stanislav, > > Tuesday, September 11, 2007, 1:21:07 AM, you wrote: > > Hi! > > > > Following the feedback from the community, we (mostly me and Dmitry) > > tried to find a good model that would allow multiple namespaces per file > > without running into too many problems and complications, and would > > allow to bundle multiple namespaced files together without > > modifications. It looks like it is possible to do, but only under the > > following condition: the file can have multiple namespaces, but if the > > file has namespaces, then it can have no code outside namespaces. > > > > For example, this would work: > > namespace A; > > class X {} > > namespace B; > > class Y {} > > This looks very messy. We should either go with curly braces or with one > namespace at the top of a file. And even if we do multiple namespaces per > file. I guess we do not allow a naespace to be spread onto several files, > right? =46rom a readability-usability perspective (which is all I am able to offer= ),=20 I'd have to agree with Marcus. The syntax should follow the structure of t= he=20 parser. So either: or=20