Am 04.05.2010 05:48, schrieb Moriyoshi Koizumi:
Hey,

Just to let you know about a new RFC for adding autoboxing feature in PHP.
Look at http://wiki.php.net/rfc/autoboxing .

Regards,
Moriyoshi

Hi,
I think you should mention that this extension basically would prohibit adding methods on primitive types later, which is probably more efficient and allows one to use the same methods on the primitive types in every php app you write. I fear that a lot of people will (have) to come up with their own string libraries, int libraries etc. which will have (subtle) differences. Guess you code for two projects, one using the autbox library X and one library Y. Would you always remember which methods you're allowed to call on an int, or the order of parameters, especially when there are many methods which have a similar name? Imho, the way to go here is implementing eg the array_* family of functions directly in php as methods for arrays, etc.
Cornelius

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to