Re: Migrating PHP classes to built in namespace
Hi Marc,
On Thu, Jun 4, 2015 at 6:04 PM, Marc Bennewitz <[email protected]> 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
[email protected]
Thread (9 messages)