Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33853 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18758 invoked by uid 1010); 7 Dec 2007 20:56:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 18736 invoked from network); 7 Dec 2007 20:56:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Dec 2007 20:56:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=sam@sambarrow.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sam@sambarrow.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sambarrow.com from 205.234.132.11 cause and error) X-PHP-List-Original-Sender: sam@sambarrow.com X-Host-Fingerprint: 205.234.132.11 scottsdale.servershost.net Received: from [205.234.132.11] ([205.234.132.11:46851] helo=scottsdale.servershost.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/58-00432-A83B9574 for ; Fri, 07 Dec 2007 15:56:42 -0500 Received: from [65.207.49.92] (port=48925) by scottsdale.servershost.net with esmtpsa (SSLv3:RC4-MD5:128) (Exim 4.68) (envelope-from ) id 1J0kFU-0007e8-BS; Fri, 07 Dec 2007 14:56:40 -0600 To: Ken Stanley Cc: Robert Cummings , Lokrain , internals@lists.php.net In-Reply-To: References: <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> Content-Type: text/plain Date: Fri, 07 Dec 2007 15:56:23 -0500 Message-ID: <1197060983.28351.33.camel@sbarrow-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - scottsdale.servershost.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - sambarrow.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] Namespace From: sam@sambarrow.com (Sam Barrow) However you don't have a semicolon after your namespace declaration. With the current implementation you would need a semicolon, which doesn't look nearly as good with braces. On Fri, 2007-12-07 at 15:21 -0500, Ken Stanley wrote: > I understand what you mean, but I was just trying to put a real-world face > on a so-far theoretical problem. But that does raise an interesting point; > we can already use braces anywhere and everywhere, and while we could easily > wrap namespaces in anonymous braces like you describe, why not just go the > extra mile and allow attaching them directly to the namespace, i.e.: > > > namespace XYZ { > // Do stuff > } > > // Looks a little better than > > { > namespace XYZ; > > // Do stuff > > } > > ?> > > Of course, this is just my opinion, and given your suggestion, at least > there is an acceptable solution already. Thank you. :) > > On Dec 7, 2007 3:10 PM, Robert Cummings wrote: > > > Is there any reason why you can't already use braces optionally? I mean, > > the following code is valid with the current engine: > > > > > > > { > > { > > { > > class Foo > > { > > function Foo() > > { > > echo 'Foo'."\n"; > > } > > } > > } > > } > > } > > > > ?> > > > > Cheers, > > Rob. > > -- > > ........................................................... > > SwarmBuy.com - http://www.swarmbuy.com > > > > Leveraging the buying power of the masses! > > ........................................................... > > > > >