Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41175 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19626 invoked from network); 17 Oct 2008 00:10:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2008 00:10:56 -0000 Authentication-Results: pb1.pair.com header.from=steph@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=steph@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 64.99.136.137 as permitted sender) X-PHP-List-Original-Sender: steph@php.net X-Host-Fingerprint: 64.99.136.137 smtprelay-virgin0137.hostedemail.com Received: from [64.99.136.137] ([64.99.136.137:34185] helo=smtprelay-virgin.hostedemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8D/8C-12818-F08D7F84 for ; Thu, 16 Oct 2008 20:10:56 -0400 Received: from filter.hostedemail.com (ff-bigip1 [10.5.19.254]) by smtprelay07.hostedemail.com (Postfix) with SMTP id C21411714CEF; Fri, 17 Oct 2008 00:10:53 +0000 (UTC) X-SpamScore: 1 X-Spam-Summary: 2,0,0,71c1039f578621d3,691ff1dea13fdf9b,steph@php.net,stas@zend.com:greg@chiaraquartet.net:internals@lists.php.net,RULES_HIT:355:379:539:540:541:542:543:567:599:601:988:989:1155:1156:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1540:1587:1593:1594:1711:1730:1747:1766:1792:2073:2075:2078:2379:2393:2559:2562:2693:2828:2895:3027:3352:3622:3865:3866:3867:3868:3869:3870:3871:3872:3873:3874:3876:3877:5007:6114:6261:7653:7875:7901:7903:8660:9010,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:none,DNSBL:none Received: from foxbox (62-31-252-63.cable.ubr07.shef.blueyonder.co.uk [62.31.252.63]) (Authenticated sender: steph.fox) by omf12.hostedemail.com (Postfix) with ESMTP; Fri, 17 Oct 2008 00:10:52 +0000 (UTC) Message-ID: <001501c92fed$112609f0$3ffc1f3e@foxbox> To: "Stanislav Malyshev" , "Greg Beaver" Cc: "PHP Developers Mailing List" References: <48F653FF.5010106@chiaraquartet.net> <48F75FA1.7020505@zend.com> <48F7AD03.1050009@chiaraquartet.net> <48F7BC05.7060005@zend.com> Date: Fri, 17 Oct 2008 01:12:36 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; 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 X-session-marker: 73746570682E666F78 Subject: Re: [PHP-DEV] my last attempt at sanity with namespaces From: steph@php.net ("Steph Fox") Hey Stas, > It's basically the same that my proposal does, only you have to work twice > as hard (two use's) and remember which name you assigned to what - and you > still would have to rewrite the code to use another:: - so you have to > both add use's _and_ rewrite the actual call code. And you'd have to do it > even if names in class foo have nothing to do with names in namespace foo. Yes, but most times when there is conflict it will be between two sets of code. So importing someone else's namespace explicitly and giving it a new name is a good call IMHO. Greg, you have questions outstanding on-list (mostly from Stas). Please respond to them? nb Stas - I asked the same question about warnings, Greg updated his proposal since then to answer it. - Steph