Re: Migrating PHP classes to built in namespace

From: Date: Wed, 03 Jun 2015 08:45:02 +0000
Subject: Re: Migrating PHP classes to built in namespace
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-86475@lists.php.net to get a copy of this message
Yes, however for consistency, I personally like the idea of using a longer namespace over prefixed class names. The most relevant example being the SPL data structures. For instance SplStack might come under Php\Collection\Stack. As far as I can tell there is a fair amount of fear of adding new native classes in light of BC issues. But I have yet to see anyone claim the Php vendor namespace for themselves, so it might provide for future extensions. Dominic On Wed, 3 Jun 2015 09:35 Lorenzo Fontana <fontanalorenz@gmail.com> wrote: > AFAIK the PHP namespace is the root one. > > Lorenzo > > 2015-06-03 10:33 GMT+02:00 Dominic Grostate <codekestrel@googlemail.com>: > >> Hi, >> >> I couldn't find any information on this elsewhere, or perhaps I didn't >> look >> hard enough. Its been bugging me a while though so I though I would ask. >> >> Has there been any discussion or consideration towards migrating or at >> least aliasing all built in classes to a Php vendor namespace? >> >> For aesthetics if nothing else. >> > >

« previous php.internals (#86475) next »