On 1 March 2015 15:18:09 GMT, "S.A.N" <ua.san.a...@gmail.com> wrote:
>Maybe better implement for method calls on primitive types in PHP 7?
>https://github.com/nikic/scalar_objects

We'd have a whole bunch of tough decisions to make - does HTML escaping really 
belong as a method of the string type? What are printf and scanf methods of? Etc

Without the ability for a user to patch the existing type (a major departure 
from current classes), you basically still have a bunch of function aliases. 
What motivation would there be to change dozens of instances of strpos($a, $b) 
to $a->indexOf($b)?

In this respect, some version of UString makes more sense, because (if 
well-defined) it actually gives users some advantage over the current functions.

Regards,
-- 
Rowan Collins
[IMSoP]



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

Reply via email to