Re: PHP 6 : a new API ?

From: Date: Wed, 20 Feb 2013 10:19:29 +0000
Subject: Re: PHP 6 : a new API ?
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
2013/2/20 Klaus Ufo <[email protected]>

> Hi there !
>
> We all know that the current PHP API has flaws. Maybe we could use
> namespaces to build a new coherent PHP API ? Like :
>
> - \arr
> - \num
> - \str
>
> and so on. Advantages :
>
> - no more global functions
>

Just to throw that in: Even if you pack them into namespaces they will
still remain global functions. They simply don't live in the root-namespace
anymore.


> - separation of concerns
> - backward compatibility

- work can be done progressively
> - easy to add user-defined functions (using php namespaces)
> - we could provide a \str\utf8 namespace
>
> This is just an idea. I don't know what is your vision for a next PHP 6.
>
> KH
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
github.com/KingCrunch


Thread (9 messages)

« previous php.internals (#66045) next »