Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41264 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15447 invoked from network); 18 Oct 2008 20:36:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Oct 2008 20:36:09 -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:34701] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 68/C5-11719-7B84AF84 for ; Sat, 18 Oct 2008 16:36:09 -0400 Received: from MBOERGER-ZRH.corp.google.com (41-88.106-92.cust.bluewin.ch [92.106.88.41]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id B64FC11DB4A; Sat, 18 Oct 2008 22:36:03 +0200 (CEST) Date: Sat, 18 Oct 2008 22:33:14 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1061064720.20081018223314@marcus-boerger.de> To: Greg Beaver CC: PHP Developers Mailing List In-Reply-To: <48F653FF.5010106@chiaraquartet.net> References: <48F653FF.5010106@chiaraquartet.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] my last attempt at sanity with namespaces From: helly@php.net (Marcus Boerger) Hello Greg, Many thanks for wirting a nice proposal. Now, I consider #2 and #4 as no options, just as most everyone else. Regarding #3, I see it contradicting our KISS approach. You can actually write code where an Identifier in two scripts that share the same includes mean something completely different. Please not. Your #1 is actually my number 1 and I said so about 5 years ago in the first napesace implementation. And I said so over a year ago. I like #1 because it is easier, conflict free by design and does not have any issue with __autoload or whatever. In your RFC you write under con 2, that there are issues with missing triple colons. However for the most cases the users are safe. Especially in code like you are showing the compiler can tell that it must be wrong. That is you can only have on double colon on the right and no other one left of that. And if this is still too problematic we could even make it a quad colon. That should be easy enough to read. Besides the above I think our users want 'use' in their if clauses. And we have to consider that. Technically we can easily allow use in the main block outside functions. But that will interfere with compiler caches. So as practical that might be, I think we should not really do it. And if at some later point in time we think it is absolutely necessary we can at it in PHP 10 or whatever. Next I do not want any special treatment for internal classes at all! If the user wants to hide the exception class then he has to derive the original one that he finds in the main namespace: Hi, > http://wiki.php.net/rfc/namespaceissues > Read it and discuss. Let's be clear people: the technical problems in > namespaces are limited and solvable. The problems in the political > environment surrounding them may not be. Wouldn't politics be a > stupid-ass reason to remove namespaces? > Greg Best regards, Marcus