Re: PHP 6 : a new API ?
| From: | Sebastian Krebs | 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 internals+get-66045@lists.php.net to get a copy of this message | ||
2013/2/20 Klaus Ufo <klausufo@yahoo.fr>
> 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