Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86590 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26797 invoked from network); 11 Jun 2015 08:22:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jun 2015 08:22:45 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.174 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.160.174 mail-yk0-f174.google.com Received: from [209.85.160.174] ([209.85.160.174:33862] helo=mail-yk0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9C/29-63696-45549755 for ; Thu, 11 Jun 2015 04:22:44 -0400 Received: by ykfl8 with SMTP id l8so30942ykf.1 for ; Thu, 11 Jun 2015 01:22:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=LgNZKc53nt5D3qNfBcAUeiJw3dqG5OOtYSqtOHZfegU=; b=wMF0qNlv+NXNc0fjOmbNN/NFQ1KIhYexgLkHlZJt82oKFD5+JktNlSODj1cv73y/DG uq+cZX6KrYvQEsCILW75mOmnIr7Em686aDzoaKXwFibK/WlfpX76nNhxEkLuOoQSVCQD ti3SRh5TvWZ94GiMGpjJWuGqDlI4LvKyiTOTIY83v6QPDCuJk1XM51SnLfqmm7wVf2lX zvxfC494IwWjrTsRvJlN720Me9nM6tqG21NVfAFlRyZKdP55oTNu0wEsffTJm/PfqpzO XR/quj9UBf2QuJ4fpA6xfNOZQaSDjZyMj787o/4xqYJG1zQ1/lGteNWLVXNgl2IN4ciV AN+A== X-Received: by 10.129.39.205 with SMTP id n196mr9673487ywn.55.1434010962099; Thu, 11 Jun 2015 01:22:42 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.13.246.2 with HTTP; Thu, 11 Jun 2015 01:22:01 -0700 (PDT) In-Reply-To: <2B.98.63696.ECA39755@pb1.pair.com> References: <557014A7.3040207@mabe.berlin> <2B.98.63696.ECA39755@pb1.pair.com> Date: Thu, 11 Jun 2015 17:22:01 +0900 X-Google-Sender-Auth: c2W2WYu_KLSD3sjey6IqDVGWlOo Message-ID: To: Tony Marston Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a114092a20005e0051839b25a Subject: Re: [PHP-DEV] Migrating PHP classes to built in namespace From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a114092a20005e0051839b25a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Tony, On Thu, Jun 11, 2015 at 4:37 PM, Tony Marston wrote: > "Yasuo Ohgaki" wrote in message > news:CAGa2bXZvuqV4Kwru+wUL-bfTb9_tnv=3DL16rEu-+w+uAjx4H1Mw@mail.gmail.com= ... > >> >> Hi Jakub, >> >> On Thu, Jun 11, 2015 at 7:43 AM, Jakub Kub=C3=ADcek >> >> 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. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a114092a20005e0051839b25a--