Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86589 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22958 invoked from network); 11 Jun 2015 07:37:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jun 2015 07:37:53 -0000 X-Host-Fingerprint: 80.177.120.119 marston-home.demon.co.uk Received: from [80.177.120.119] ([80.177.120.119:29830] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2B/98-63696-ECA39755 for ; Thu, 11 Jun 2015 03:37:51 -0400 Message-ID: <2B.98.63696.ECA39755@pb1.pair.com> To: internals@lists.php.net References: <557014A7.3040207@mabe.berlin> In-Reply-To: Date: Thu, 11 Jun 2015 08:37:45 +0100 Lines: 2 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 X-Posted-By: 80.177.120.119 Subject: Re: [PHP-DEV] Migrating PHP classes to built in namespace From: TonyMarston@hotmail.com ("Tony Marston") "Yasuo Ohgaki" wrote in message news:CAGa2bXZvuqV4Kwru+wUL-bfTb9_tnv=L16rEu-+w+uAjx4H1Mw@mail.gmail.com... > >Hi Jakub, > >On Thu, Jun 11, 2015 at 7:43 AM, Jakub KubĂ­cek >wrote: > >> This is weird and ugly what you're fabricating here. The PHP classes >> should be all in global namespace. I am really against some >> namespacing of them. >> > >It may seems weird if you aren't familiar with languages support >this kind of feature. However, you'll find many languages support >this or similar. > >JavaScript is one of them. JavaScript allows to override any functions, >for example. It's works like importing other namespace function into >root. i.e. Provide different feature with the same name. > >For long term PHP evolution, having ability to import some namespace >into root namespace is great feature. i.e. API/Module version up. We >can provide both old and new during migration. Use of namespace is >better approach because it may give us super clean global namespace also. > >Regards, > >-- >Yasuo Ohgaki >yohgaki@ohgaki.net The fact that other languages have this feature should not be a reason to add it to PHP, especially as it would provide a huge BC break with absolutely no practical, only theoretical, benefits. -- Tony Marston