Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58787 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54653 invoked from network); 8 Mar 2012 16:23:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Mar 2012 16:23:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=glopes@nebm.ist.utl.pt; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=glopes@nebm.ist.utl.pt; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nebm.ist.utl.pt from 193.136.128.21 cause and error) X-PHP-List-Original-Sender: glopes@nebm.ist.utl.pt X-Host-Fingerprint: 193.136.128.21 smtp1.ist.utl.pt Linux 2.6 Received: from [193.136.128.21] ([193.136.128.21:57930] helo=smtp1.ist.utl.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9C/29-00152-EECD85F4 for ; Thu, 08 Mar 2012 11:23:11 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp1.ist.utl.pt (Postfix) with ESMTP id 0A7C670003D0; Thu, 8 Mar 2012 16:23:07 +0000 (WET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at ist.utl.pt Received: from smtp1.ist.utl.pt ([127.0.0.1]) by localhost (smtp1.ist.utl.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id K5xB40UkA2Fe; Thu, 8 Mar 2012 16:23:06 +0000 (WET) Received: from mail2.ist.utl.pt (mail.ist.utl.pt [IPv6:2001:690:2100:1::8]) by smtp1.ist.utl.pt (Postfix) with ESMTP id 0D65F700045B; Thu, 8 Mar 2012 16:23:06 +0000 (WET) Received: from slws007.slhq.int (a79-168-248-114.cpe.netcabo.pt [79.168.248.114]) (Authenticated sender: ist155741) by mail2.ist.utl.pt (Postfix) with ESMTPSA id 9DD47201BE03; Thu, 8 Mar 2012 16:23:05 +0000 (WET) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "PHP Internals List" , "Michael Morris" References: Date: Thu, 08 Mar 2012 17:23:03 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Organization: =?utf-8?Q?N=C3=BAcleo_de_Eng=2E_Biom=C3=A9di?= =?utf-8?Q?ca_do_I=2ES=2ET=2E?= Message-ID: In-Reply-To: User-Agent: Opera Mail/11.61 (Win32) Subject: Re: [PHP-DEV] [RFC] Specify namespace to include file into. From: glopes@nebm.ist.utl.pt ("Gustavo Lopes") On Thu, 08 Mar 2012 17:05:19 +0100, Michael Morris wrote: > https://wiki.php.net/rfc/changes_to_include_and_require > > Since the reaction to the first of the two suggestions was largely > negative I've withdrawn it for now to focus on the second of the two > changes. In all honestly, these two suggestions should have had > independent RFC's from the start. > > Of the two suggestions this one has the more profound implications to > the language even if it is simpler to implement. Thoughts? > How exactly would this be useful? The purpose of namespaces is to avoid collision of symbols. Are you saying they did not solve this problem and you have to rename already namespaced files? I also don't understand your template argument. Why would you need to namespace templates? Typically they are included from inside a function (and therefore don't change/access the global namespace). I only see some usefulness as a transitional measure, which would save from namespacing 'legacy' libraries. But PHP 5.5 seems a bit late to introduce such measure. -- Gustavo Lopes