Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39649 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33525 invoked from network); 5 Aug 2008 03:42:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Aug 2008 03:42:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=larry@garfieldtech.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=larry@garfieldtech.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain garfieldtech.com from 76.96.30.64 cause and error) X-PHP-List-Original-Sender: larry@garfieldtech.com X-Host-Fingerprint: 76.96.30.64 qmta07.emeryville.ca.mail.comcast.net Received: from [76.96.30.64] ([76.96.30.64:32769] helo=QMTA07.emeryville.ca.mail.comcast.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8D/42-20373-C1CC7984 for ; Mon, 04 Aug 2008 23:42:21 -0400 Received: from OMTA10.emeryville.ca.mail.comcast.net ([76.96.30.28]) by QMTA07.emeryville.ca.mail.comcast.net with comcast id yQ4A1Z0010cQ2SLA7TiJS6; Tue, 05 Aug 2008 03:42:18 +0000 Received: from earth.ufp ([24.13.255.226]) by OMTA10.emeryville.ca.mail.comcast.net with comcast id yThc1Z0044trKQ88WThc0V; Tue, 05 Aug 2008 03:41:36 +0000 X-Authority-Analysis: v=1.0 c=1 a=n-O3kHwuCEAA:10 a=9pkmhpP8yWfr2FqVjkcA:9 a=bAhuNuRe_VwiKih5GxvOBEVJ62cA:4 a=FHBbIDN7CdwA:10 a=LY0hPdMaydYA:10 Received: from localhost (localhost [127.0.0.1]) by earth.ufp (Postfix) with ESMTP id 1C0DDD79E5 for ; Mon, 4 Aug 2008 22:42:17 -0500 (CDT) Received: from earth.ufp ([127.0.0.1]) by localhost (earth.ufp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3OM0KWJYunBr for ; Mon, 4 Aug 2008 22:42:17 -0500 (CDT) Received: from luna.local (unknown [192.168.42.104]) by earth.ufp (Postfix) with ESMTPSA id F3517D795D for ; Mon, 4 Aug 2008 22:42:16 -0500 (CDT) To: internals@lists.php.net Date: Mon, 4 Aug 2008 22:42:16 -0500 User-Agent: KMail/1.9.9 References: <909776579.20080803142659@marcus-boerger.de> <4896BDB3.7000003@e-novative.de> <698DE66518E7CA45812BD18E807866CE01DAD465@us-ex1.zend.net> In-Reply-To: <698DE66518E7CA45812BD18E807866CE01DAD465@us-ex1.zend.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200808042242.16962.larry@garfieldtech.com> Subject: Re: [PHP-DEV] Inconsistencies in 5.3 From: larry@garfieldtech.com (Larry Garfield) On Monday 04 August 2008 10:29:33 am Andi Gutmans wrote: > Re: braces, I don't think it's a big deal but I would prefer without > braces. Given that I think people should only have one namespace per file, > the braces is a PITA because it already starts you off in an additional > layer of indentation. We all know that whitespace does matter :) Also > another reason to not have braces because then it then makes sure that you > don't go back into a global namespace and it is truly only used in these > framework concatenation use cases. There's always class Foo::Bar { ... } if you want to avoid too much indentation. :-) *runs* Seriously though, the main problem I see with the non-braces mechanism is that, as others have observed, it is the only place in PHP (AFAIK) where file matters. All other code can be shuffled about from file to file without breaking. That's rather inconsistent. -- Larry Garfield larry@garfieldtech.com