PHP 6 : a new API ?
| From: | Klaus Ufo | Date: | Wed, 20 Feb 2013 07:22:01 +0000 |
| Subject: | PHP 6 : a new API ? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-66020@lists.php.net to get a copy of this message | ||
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
- 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