Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36315 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89945 invoked from network); 22 Mar 2008 11:00:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Mar 2008 11:00:45 -0000 Authentication-Results: pb1.pair.com header.from=hannes.magnusson@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=hannes.magnusson@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.200.172 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: hannes.magnusson@gmail.com X-Host-Fingerprint: 209.85.200.172 wf-out-1314.google.com Received: from [209.85.200.172] ([209.85.200.172:45300] helo=wf-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4F/24-26785-CD6E4E74 for ; Sat, 22 Mar 2008 06:00:45 -0500 Received: by wf-out-1314.google.com with SMTP id 27so2002984wfd.26 for ; Sat, 22 Mar 2008 04:00:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=O5JX/jjYEKjMgrSkJcD/wj10bNi7bHZzPnxap2XDLm0=; b=WJCtRiDigAtH+GVoeyeU1qJgkM5gePJvXWVqhTqLMoQZ2TqrUrlqR8faQy2FUPrDgri39LjWaLYuF95lQS9AWEAqfx7E5LpNZ1OBf96Lcevhpbu/PaV8l1RP1AJciLE+Fv2oRO5hPWCUTpqmKzzyYgNWLZukdJbrfJuOnU0Gfp8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=s0k539D6Kjovmz5kJEzm6UPGGKEEfkASF+vPlKdNGmCtkStLcdXuj8rRz3FWbeqYMliPyUwl2kR8POQdA+P+urLxdIy5KtOWE5UxHPkhnttcP0+cAmsZL/Rq8tM37sQ5GiL022SYoZ/jrVvwItN6D0xgluZ6OWjuInERUsgrIu0= Received: by 10.142.177.7 with SMTP id z7mr3030412wfe.238.1206183642072; Sat, 22 Mar 2008 04:00:42 -0700 (PDT) Received: by 10.142.170.21 with HTTP; Sat, 22 Mar 2008 04:00:42 -0700 (PDT) Message-ID: <7f3ed2c30803220400q600e7f9ei257ddd07fffba463@mail.gmail.com> Date: Sat, 22 Mar 2008 12:00:42 +0100 To: "Marcus Boerger" Cc: internals@lists.php.net In-Reply-To: <1789567073.20080321223647@marcus-boerger.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1789567073.20080321223647@marcus-boerger.de> Subject: Re: [PHP-DEV] [RFC] Namespace syntax decision From: hannes.magnusson@gmail.com ("Hannes Magnusson") On Fri, Mar 21, 2008 at 10:36 PM, Marcus Boerger wrote: > 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 { } Since multiple namespaces are allowed in the same file we have no choice but to use this syntax. Otherwise, I would have gone for package foo; -Hannes