Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39644 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63223 invoked from network); 4 Aug 2008 20:52:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2008 20:52:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.94.56 as permitted sender) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Linux 2.6 Received: from [85.214.94.56] ([85.214.94.56:34522] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A3/27-22351-82C67984 for ; Mon, 04 Aug 2008 16:52:59 -0400 Received: from MBOERGER-ZRH.corp.google.com (unknown [193.142.125.1]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id AFA1711F288; Mon, 4 Aug 2008 22:52:52 +0200 (CEST) Date: Mon, 4 Aug 2008 22:52:21 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <201647671.20080804225221@marcus-boerger.de> To: "Andi Gutmans" CC: "Stefan Priebsch" , "Hannes Magnusson" , "Dmitry Stogov" , "Marcus Boerger" , In-Reply-To: <698DE66518E7CA45812BD18E807866CE01DAD465@us-ex1.zend.net> References: <909776579.20080803142659@marcus-boerger.de> <4896A7C4.8090503@zend.com> <7f3ed2c30808040055r377369d0l86f7c39cea7d94b2@mail.gmail.com> <4896BDB3.7000003@e-novative.de> <698DE66518E7CA45812BD18E807866CE01DAD465@us-ex1.zend.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Inconsistencies in 5.3 From: helly@php.net (Marcus Boerger) Hello Andi, Monday, August 4, 2008, 5:29:33 PM, you wrote: >> -----Original Message----- >> From: Stefan Priebsch [mailto:stefan.priebsch@e-novative.de] >> Sent: Monday, August 04, 2008 1:29 AM >> To: Hannes Magnusson >> Cc: Dmitry Stogov; Marcus Boerger; internals@lists.php.net >> Subject: Re: [PHP-DEV] Inconsistencies in 5.3 >> >> Hannes Magnusson schrieb: >> > I don't think anyone but him likes multiple namespaces per file. I do >> > remember a PhD thesis sized mail from him explaining why multiple >> > namespaces per file was needed though (can hardly believe anyone read >> > the whole thing..). >> >> In some deployment processes, multiple PHP files are merged together >> into one file. Symfony, for example, does this, at least optionally. > We were not big fans of this but were convinced that for these > frameworks it'd be reasonable. We agreed that we would make sure people > understand that using multiple namespaces per-file is not a best practice > and is discouraged from non-generated code. > 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 :) I fail to see a connection here and any decent editor that does auto-indentation can be configured to not do so for select structures and usually people do so for namespaces. > 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. This can easily be addressed in the parser. > Btw, I am both a C++ and Java developer and it honestly doesn't confuse > me either way. I do prefer the "namespace" keyword because for me > personally it better reflects what we have here. I always associate > package with something that maps more directly to files but again, this > could just be my own bias and I am sure I would get used to either very > quickly. In general, people will always have pre conceived notions re: > names but I have learnt that once a name is picked people will get used > to them very quickly. This is true for most naming in life incl. personal life :) > Andi Best regards, Marcus