Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40601 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67319 invoked from network); 22 Sep 2008 15:45:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Sep 2008 15:45:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:50615] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8C/00-27717-2ADB7D84 for ; Mon, 22 Sep 2008 11:45:39 -0400 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id A0F85414400B; Mon, 22 Sep 2008 15:45:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NovD9LTsdQ26; Mon, 22 Sep 2008 17:45:34 +0200 (CEST) Received: from [192.168.0.151] (77-57-23-243.dclient.hispeed.ch [77.57.23.243]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id 3276E4144009; Mon, 22 Sep 2008 17:45:33 +0200 (CEST) Cc: Gregory Beaver , internals@lists.php.net Message-ID: <35BF242A-A479-4C8D-9137-0ED1B68109FE@pooteeweet.org> To: Dmitry Stogov In-Reply-To: <48D7ADAE.5030500@zend.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Mon, 22 Sep 2008 17:45:33 +0200 References: <48D47532.8080102@chiaraquartet.net> <10845a340809201643q59e27211i471e09241f7253b1@mail.gmail.com> <200809202000.38870.larry@garfieldtech.com> <48D66160.40306@chiaraquartet.net> <48D79672.4060208@zend.com> <48D7A51C.9030805@chiaraquartet.net> <48D7ADAE.5030500@zend.com> X-Mailer: Apple Mail (2.929.2) Subject: Re: [PHP-DEV] solving the namespace conflict issues between function/staticmethod class constant/ns constant From: mls@pooteeweet.org (Lukas Kahwe Smith) On 22.09.2008, at 16:37, Dmitry Stogov wrote: >> Returning to the original debate, if you really believe this >> conflict is >> not an issue, then why was the first user note published last >> December a >> note about this conflict? >> >> http://us3.php.net/manual/en/language.namespaces.php#80035 > > I could add nothing. The problem exists, but proposed solution make > language even worse. Having A::B->foo() and ->foo() or ::foo() and > A::B->C::foo() is much more inconsistent from my point of view. > It would be better to change static class separator from :: to ->, but > it's a BC break Again, not speaking as an RM, I personally feel we really do have to solve this ambiguity problem. I do not agree that this only affects "namespace abusers". That being said we have to stay realistic. What Greg proposes is realistic imho. Its essentially reusing an existing OO syntax. The same is what we have today with the double colon. While I agree that it would not be my natural choice, it seems it solves our real problem of the frequently mentioned ambiguity problem. So from that perspetive its a step forward from the current syntax. I know we are getting dangerously close (or are we already back in it?) to the namespace separator discussion. I remember back then a lot of people were saying lets get the implementation done first and then worry about the syntax. I guess we are more or less at this point now. regards, Lukas Kahwe Smith mls@pooteeweet.org