Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33850 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10082 invoked by uid 1010); 7 Dec 2007 20:21:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 10067 invoked from network); 7 Dec 2007 20:21:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Dec 2007 20:21:50 -0000 Authentication-Results: pb1.pair.com header.from=dohpaz@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=dohpaz@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.162.226 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: dohpaz@gmail.com X-Host-Fingerprint: 64.233.162.226 nz-out-0506.google.com Received: from [64.233.162.226] ([64.233.162.226:18781] helo=nz-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/27-00432-D5BA9574 for ; Fri, 07 Dec 2007 15:21:50 -0500 Received: by nz-out-0506.google.com with SMTP id x7so368194nzc for ; Fri, 07 Dec 2007 12:21:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=BGzEpHDZ7lydQCJINZwfe3wkk8u+Uo6NzrCSdQkeTWY=; b=GZkMRuvJEHY3sdevqnDobUPtJzNLQCifSh279TdEtA1HKIsYlQ1eloNLw/Ng0WYrMs/TCZBp9Umb8/npu3MgQJOpOfZ83USlUJ88gMS1bZxU5CCHbQfNk+Nq+81ZLSIqX98OFLKmN/dm6uUYdzKtGPJxy0Wg26kjOH3uRy31KYw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=mF8krufvMafnCX6DAvnUD+5jA+PAiEN6MyaM2CtBvpE4hRS8h9Rnri/8z6eo/c7qkX17pngrRA9euYaI+fRUFO3EW3tdWOYaeptUhbXB3xtL/31ZSKx4hRitTPfHKje9QigJLNHMXUuybAjaF3AgPlLdi0xsV5CPtPXVfDqRaRE= Received: by 10.142.225.11 with SMTP id x11mr165594wfg.1197058906899; Fri, 07 Dec 2007 12:21:46 -0800 (PST) Received: by 10.142.180.15 with HTTP; Fri, 7 Dec 2007 12:21:46 -0800 (PST) Message-ID: Date: Fri, 7 Dec 2007 15:21:46 -0500 To: "Robert Cummings" Cc: Lokrain , internals@lists.php.net In-Reply-To: <1197058210.14915.98.camel@blobule> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_12744_19395967.1197058906881" 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> Subject: Re: [PHP-DEV] Namespace From: dohpaz@gmail.com ("Ken Stanley") ------=_Part_12744_19395967.1197058906881 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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.: 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! > ........................................................... > -- It looked like something resembling white marble, which was probably what it was: something resembling white marble. -- Douglas Adams, "The Hitchhikers Guide to the Galaxy" ------=_Part_12744_19395967.1197058906881--