Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36592 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24290 invoked from network); 26 Mar 2008 23:42:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Mar 2008 23:42:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.163 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.163 mail4.netbeat.de Received: from [83.243.58.163] ([83.243.58.163:47576] helo=mail4.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 89/99-47041-55FDAE74 for ; Wed, 26 Mar 2008 18:42:14 -0500 Received: (qmail 20920 invoked by uid 507); 26 Mar 2008 23:42:08 -0000 Received: from unknown (HELO ?192.168.1.102?) (postmaster%schlueters.de@82.135.85.188) by mail4.netbeat.de with ESMTPA; 26 Mar 2008 23:42:08 -0000 To: Marcus Boerger Cc: internals@lists.php.net In-Reply-To: <1789567073.20080321223647@marcus-boerger.de> References: <1789567073.20080321223647@marcus-boerger.de> Content-Type: text/plain Date: Thu, 27 Mar 2008 00:42:09 +0100 Message-ID: <1206574929.11056.38.camel@goldfinger> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-3.fc8) Content-Transfer-Encoding: 7bit Subject: Re: [RFC] Namespace syntax decision From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi, On Fri, 2008-03-21 at 22:36 +0100, Marcus Boerger wrote: > we all were asked to stop discussing syntax of namespaces as we were told > that we would decide after the namespace functionality was fully implemented. > Now I think that the functionallity is pretty much settled we should > revisit the syntax. We all have been very patient so far. Anyway here goes > my take on it: Allowing multiple namespaces per file using the "namespace foo;" syntax feels really bad for me. Therefore I basically agree with Marcus on the two options. > 1) namespace foo { } > > 2) package foo; > > I favor 1) if we allow namespace nesting and 2) if not. The current > way of > nesting is very confusing: > namespace foo; namespace bar; About the options I don't have strong opinions but I see that people want multiple namespaces per file. We aren't like other languages which enforce one class per file and I don't think we should enforce one namespace per file. Therefore I prefer 1). johannes