Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33711 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50471 invoked by uid 1010); 5 Dec 2007 03:28:03 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 50455 invoked from network); 5 Dec 2007 03:28:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2007 03:28:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=steph@zend.com; spf=permerror; sender-id=softfail Authentication-Results: pb1.pair.com header.from=steph@zend.com; sender-id=softfail Received-SPF: error (pb1.pair.com: domain zend.com from 64.97.136.131 cause and error) X-PHP-List-Original-Sender: steph@zend.com X-Host-Fingerprint: 64.97.136.131 smtpout0131.sc1.he.tucows.com Solaris 8 (1) Received: from [64.97.136.131] ([64.97.136.131:18056] helo=n082.sc1.he.tucows.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 81/88-10080-1CA16574 for ; Tue, 04 Dec 2007 22:28:03 -0500 Received: from sc1-out05.emaildefenseservice.com (64.97.139.2) by n082.sc1.he.tucows.com (7.2.069.1) id 47030A3E005CB502; Wed, 5 Dec 2007 03:27:40 +0000 X-SpamScore: 2 X-Spamcatcher-Summary: 2,0,0,9c872f3764b8d9c8,fee86ee358c62f34,steph@zend.com,-,RULES_HIT:152:355:379:539:540:541:542:543:567:599:601:945:947:973:988:989:1155:1156:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1541:1587:1593:1594:1676:1711:1730:1747:1766:1792:2073:2075:2078:2194:2198:2199:2200:2377:2393:2559:2562:2736:2897:3027:3353:3865:3866:3867:3868:3869:3870:3871:3872:3873:3874:4250:4384:4399:5007:6119:6261,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none, DomainCache:0,MSF:not bulk,SPF:,MSBL:none,DNSBL:none X-Spamcatcher-Explanation: Received: from foxbox (unknown [64.97.206.40]) (Authenticated sender: steph.fox) by sc1-out05.emaildefenseservice.com (Postfix) with ESMTP; Wed, 5 Dec 2007 03:28:00 +0000 (UTC) Message-ID: <06b001c836ee$e1097970$e6dfc350@foxbox> Reply-To: "Steph Fox" To: "Stanislav Malyshev" Cc: "Gregory Beaver" , "Derick Rethans" , "PHP Developers Mailing List" References: <4755E492.2080906@chiaraquartet.net> <4755FD27.3030802@zend.com> <064401c836de$e49dde10$e6dfc350@foxbox> <4756044D.5000803@zend.com> <066f01c836e2$4a209fe0$e6dfc350@foxbox> Date: Wed, 5 Dec 2007 03:28:15 -0000 Organization: Zend Technologies MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: Re: [PHP-DEV] Re: RFC: Dropping Namespace From: steph@zend.com ("Steph Fox") > I guess what I'm really asking is, 'is there any point in allowing > import/use to be used in the global space?' I'm tired and etc, but I just > can't visualize where it would be useful. And now I've finished reading old South Park episodes... OK, it's sinking in now. Because global import/use is something you only have to type once, whereas you'd have to add the namespace declaration, the relevant includes and any specific imports from the global namespace on a per-file basis (unless that last is a bug in my ageing PHP copy). Sorry, I'm slower than the average glacier tonight :( Even so... if you want your code to be safe from potential naming collisions you'd need to do all that stuff _anyway_, so what's the point in having a quick and dirty way to be unsafe? What am I missing here? Surely if people don't want to utilize namespacing in their own code they should just stick with fully qualified names? I'm asking a lot of questions because I'd _like_ this to work, I just don't see it as working if it's possible to break a namespaced application with third-party changes. To me that's the main reason for having namespace support in the first place, and without it, namespace support is just a way to prettify names. I'd like wildcard support too... and support for multiple namespaces per file (for bundling only)... but neither of those are complete deal-breakers in my eyes. Protection from naming collisions, is. - Steph