Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33854 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22869 invoked by uid 1010); 7 Dec 2007 21:09:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 22854 invoked from network); 7 Dec 2007 21:09:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Dec 2007 21:09:31 -0000 Authentication-Results: pb1.pair.com header.from=robert@interjinn.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=robert@interjinn.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain interjinn.com from 66.11.173.122 cause and error) X-PHP-List-Original-Sender: robert@interjinn.com X-Host-Fingerprint: 66.11.173.122 unknown Received: from [66.11.173.122] ([66.11.173.122:40577] helo=blobule.interjinn.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/C8-00432-986B9574 for ; Fri, 07 Dec 2007 16:09:31 -0500 Received: by blobule.interjinn.com (Postfix, from userid 2000) id 7C8005AD652; Fri, 7 Dec 2007 16:09:27 -0500 (EST) To: Sam Barrow Cc: Ken Stanley , Lokrain , internals@lists.php.net In-Reply-To: <1197060932.28351.31.camel@sbarrow-desktop> References: <475713B2.4030802@iamjochem.com> <475719ED.8050306@zend.com> <200712052110.37023.larry@garfieldtech.com> <47576AEF.4030306@omegavortex.net> <5474E017-DF97-4B91-8FE0-7D6831E64F56@bitxtender.com> <4EE0727E-ABBA-490D-B247-8C6E9A9727BA@gmx.net> <345fd5cd0712070815k55eac42fh14d5685039c03113@mail.gmail.com> <345fd5cd0712070816m2c0d4a22hd03f91abff2405ae@mail.gmail.com> <1197058210.14915.98.camel@blobule> <1197060932.28351.31.camel@sbarrow-desktop> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: InterJinn Date: Fri, 07 Dec 2007 16:09:26 -0500 Message-ID: <1197061767.14915.108.camel@blobule> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Subject: Re: [PHP-DEV] Namespace From: robert@interjinn.com (Robert Cummings) On Fri, 2007-12-07 at 15:55 -0500, Sam Barrow wrote: > Very good point > > namespace stuff ; > { > function myfunction() { > return true ; > } > } > > That would actually work, but it's not quite the same as you have the > semicolon after the namespace declaration, which looks kind of stupid. > Overall i dont think braces are a bad idea. > > People say multiple namespaces per file are confusing, but braces would > partially solve this. If using braces makes multiple namespaces per file > more likely, I say that's the way to go, as I am very much in favor of > multiple namespaces per file. As I've said previously, I'm neutral to the namespace thing. I imagine I'll realize advantages in the future, but given that I try to keep my code backward compatible until the death of a version, I don't think I'll be using them until about 2012. However, having said that, I would also have to say I'm in the braces camp. The above example while perfectly valid, is an obvious hack and throws a little WTF factor at anyone viewing it :) Cheers, Rob. -- ........................................................... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ...........................................................