Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86587 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1859 invoked from network); 11 Jun 2015 01:31:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jun 2015 01:31:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.196 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.160.196 mail-yk0-f196.google.com Received: from [209.85.160.196] ([209.85.160.196:35175] helo=mail-yk0-f196.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/36-63696-2F4E8755 for ; Wed, 10 Jun 2015 21:31:31 -0400 Received: by ykp131 with SMTP id 131so5387919ykp.2 for ; Wed, 10 Jun 2015 18:31:28 -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=jY28ZtlQRen2WZl8CPdJqY1lRwRuTTNwC8VSfkq7YV4=; b=h7yvPuBUoh9ExKa/3e8ItQzugfpQCkIAFcfLB+wVEa1OghrUUfwemqIJuGUsCw1M8l Vq8bP+mHva48ygCVlD/eIzfGOiMBii3pw5H/lSWan9j4gklUbVYtWBbCNpWNc95JdgQr MyEW1OE1sEatNTuyRnR9ZYieJ8jvXYIjXaQM7g9+2C2mSbAdGIE76zkDqnVBGmFyO+uT /rduejkMwvkMa6pgi05n0B7t10nRinvRT0Ln5f86pvrQcA0K7T1/akaYYuhusqjwJWGM +xjzVJhn8l/aBJwzqHqvwAh3xHg7vtoGxPW8+8dE0xtnl6dRXRMP8BMnSj4hE1altulG e4Fg== X-Received: by 10.170.126.13 with SMTP id s13mr8036119ykb.50.1433986288494; Wed, 10 Jun 2015 18:31:28 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.13.246.2 with HTTP; Wed, 10 Jun 2015 18:30:48 -0700 (PDT) In-Reply-To: References: <557014A7.3040207@mabe.berlin> Date: Thu, 11 Jun 2015 10:30:48 +0900 X-Google-Sender-Auth: 2arP3jxUEQ2erfO2vvil3lWSz7g Message-ID: To: =?UTF-8?B?SmFrdWIgS3Viw63EjWVr?= Cc: Marc Bennewitz , PHP Internals Content-Type: multipart/alternative; boundary=001a1139804056acdb051833f37e Subject: Re: [PHP-DEV] Migrating PHP classes to built in namespace From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a1139804056acdb051833f37e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Jakub, On Thu, Jun 11, 2015 at 7:43 AM, Jakub Kub=C3=AD=C4=8Dek 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 --001a1139804056acdb051833f37e--