Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40154 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63509 invoked from network); 30 Aug 2008 10:47:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Aug 2008 10:47:26 -0000 Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=unknown; 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:46980] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/2B-27196-B3529B84 for ; Sat, 30 Aug 2008 06:47:25 -0400 Received: from MBOERGER-ZRH.corp.google.com (12-153.106-92.cust.bluewin.ch [92.106.153.12]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id 9BE9111F258; Sat, 30 Aug 2008 12:47:20 +0200 (CEST) Date: Sat, 30 Aug 2008 12:44:23 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <675806383.20080830124423@marcus-boerger.de> To: Stanislav Malyshev CC: Marcus Boerger , Hannes Magnusson , Felipe Pena , Lukas Kahwe Smith , PHP Internals List , =?iso-8859-1?Q?Johannes_Schl=FCter?= In-Reply-To: <48B8377E.5070905@zend.com> References: <64B4CECA-980F-4738-8B05-E7935741D7BB@pooteeweet.org> <7f3ed2c30808271132x7443ea3gc4df903a3a2c73ec@mail.gmail.com> <322434106.20080827234712@marcus-boerger.de> <1219885057.5961.13.camel@pena> <7f3ed2c30808272332m3066d1e5s677bb91f4b80c4b5@mail.gmail.com> <48B6E3A8.8030903@zend.com> <112434946.20080829142412@marcus-boerger.de> <48B8377E.5070905@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] alpha2 scheduled From: helly@php.net (Marcus Boerger) Hello Stanislav, Friday, August 29, 2008, 7:53:02 PM, you wrote: > Hi! >> It wasn't designed to have multiple namespaces at all to begin with. But as > You mean multiple namespaces per file, right? Otherwise it sounds kind > of silly. Yes, it wasn't designed to have multiple namespaces per file, > and it's really bad idea to have multiple namespaces per file in 90% of > the cases. In the remaining 10% it's probably a bad idea too. >> How so? >> >> namespace foo { >> namespace bar { >> class baz {} >> } >> } >> >> According to your won words it is all about name substitution. Explicitly >> you were talking about simple text replacement. Now that in mind I see and > No, it's not simple replacement, because hierarchy brings hierarchical > resolution, like it is in Ruby. Wasn't it you who said it is all about simple replacement? However, you always said we shouldn't compare PHP features to other languages and that for that reason we should not worry about the keyword naming for instance. And that for the same reason we should not take a specific implementation of another language. Why are you suddenly taking Ruby's behavior as the thing to implement, if we were going that route? [1] But anyway, we seem to have to discuss the behavior in more detail. For instance on 17th July Greg, who was very much involved in the whole namespce implementation, summarized the open discussion points and you simply turned the discussion dead immediately [2]. If people constantly start mailing about issues they have, then we need to address that or even get rid of the feature but we cannot say: this is it, live with it as it is or not use it at all. None of that would be the PHP way where we always have been trying to come to a simple solution that works for everyone. Personally, my take is that I don't need nesting but simply see it as the natural thing to add. And text replacement, which is what the current PHP implementation does, works pretty damn well for me. But all I want is nested namespace and Felipe and I have a patch that can hopefully be submitted during this weekend. Nesting or not does not really matter to me. But seems to matter to other poeple. What I totally disagree with, on the other hand, is namespaces without curly braces - but that is no secret. [1] http://marc.info/?l=php-internals&m=118728444125687&w=2 Quote: "PHP is neither C++ not Java. Choosing which language to mimic - Java or C++ - is not the right way to think about the problem" [2] http://marc.info/?l=php-internals&m=121627681216482&w=2 Quote: "OMG, not again... How many times should we talk about the same thing?" Best regards, Marcus