Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36296 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85517 invoked from network); 21 Mar 2008 21:39:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Mar 2008 21:39:53 -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:54309] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 70/C1-26785-82B24E74 for ; Fri, 21 Mar 2008 16:39:53 -0500 Received: from MBOERGER-ZRH.corp.google.com (112-159.78-83.cust.bluewin.ch [83.78.159.112]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id C525011EFFF for ; Fri, 21 Mar 2008 22:39:49 +0100 (CET) Date: Fri, 21 Mar 2008 22:36:47 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1789567073.20080321223647@marcus-boerger.de> To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Subject: [RFC] Namespace syntax decision From: helly@php.net (Marcus Boerger) Hello Internals, 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: 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; Best regards, Marcus