Fwd: [PHP-DEV] Migrating PHP classes to built in namespace

From: Date: Wed, 10 Jun 2015 22:43:47 +0000
Subject: Fwd: [PHP-DEV] Migrating PHP classes to built in namespace
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-86580@lists.php.net to get a copy of this message
/cc-ing internals, as I sent the message privately to Yasuo by mistake. ---------- Forwarded message ---------- From: Jakub Kubíček <kelerest123@gmail.com> Date: 2015-06-11 0:40 GMT+02:00 Subject: Re: [PHP-DEV] Migrating PHP classes to built in namespace To: Yasuo Ohgaki <yohgaki@ohgaki.net> Hi. 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. My € 0.02 Regards Kubo2 2015-06-04 23:17 GMT+02:00 Yasuo Ohgaki <yohgaki@ohgaki.net>: > Hi Marc, > > On Thu, Jun 4, 2015 at 6:04 PM, Marc Bennewitz <dev@mabe.berlin> wrote: > >> This one is not compatible with current code as you have to alias the PHP >> namespace to the root one before using full classes like \DateTime. >> > > Right. > We are better to have PHP namespace for internal classes/functions first, > then > introduce "as \" few years later. i.e. PHP classes/functions exist in both > \ and \php > namespace during migration period or we may user INI switch for migration.. > > PS: I like a lower case "php" much more than upper case "PHP" ;) >> > > I'm neutral on this :) > > Regards, > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net

« previous php.internals (#86580) next »