Re: Migrating PHP classes to built in namespace
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 <[email protected]> wrote:
> AFAIK the PHP namespace is the root one.
>
> Lorenzo
>
> 2015-06-03 10:33 GMT+02:00 Dominic Grostate <[email protected]>:
>
>> 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.
>>
>
>
Thread (9 messages)