Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86614 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5881 invoked from network); 12 Jun 2015 08:10:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jun 2015 08:10:48 -0000 X-Host-Fingerprint: 80.177.120.119 marston-home.demon.co.uk Received: from [80.177.120.119] ([80.177.120.119:23652] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/F0-31453-4049A755 for ; Fri, 12 Jun 2015 04:10:46 -0400 Message-ID: <4B.F0.31453.4049A755@pb1.pair.com> To: internals@lists.php.net References: <557014A7.3040207@mabe.berlin> <2B.98.63696.ECA39755@pb1.pair.com> In-Reply-To: Date: Fri, 12 Jun 2015 09:10:37 +0100 Lines: 1 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:CAGa2bXaMoHDVoZRNNPEEM--km-in4tSyux=tUB0pAEs4tWWF-w@mail.gmail.com... > >Hi Tony, > >On Thu, Jun 11, 2015 at 4:37 PM, Tony Marston >wrote: > >> "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. >> > >It does not create huge BC. >It's matter of adding a line for namespace or having a default namespace >setting. > Huge or not, it is still a BC break. And what is the benefit in userland? -- Tony Marston