Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36340 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35165 invoked from network); 22 Mar 2008 21:59:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Mar 2008 21:59:26 -0000 Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; 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:57891] helo=mail4.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2F/78-16027-C3185E74 for ; Sat, 22 Mar 2008 16:59:26 -0500 Received: (qmail 5118 invoked by uid 507); 22 Mar 2008 21:32:30 -0000 Received: from unknown (HELO ?192.168.1.102?) (postmaster%schlueters.de@82.135.10.40) by mail4.netbeat.de with ESMTPA; 22 Mar 2008 21:32:30 -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: Sat, 22 Mar 2008 22:32:30 +0100 Message-ID: <1206221550.31721.4.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: > PHP is very close to Java and C++ in terms of Syntax. And many of our users > are familiar with one or even both of them. Also we have a tendency to > especially take syntax from those two or be in line with those two > languages. That said I see two ways: > > 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; I said in some previous post I won't like multiple namespaces per file using the 2nd syntax. So imo: either on ns per file and the 2nd syntax or allow multiple and use brackets. And then I prefer the latter. johannes