On 2 March 2015 at 01:18, 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
>
>
​I've searched through the internals archive looking for debate on using
scalar objects without much luck.  I'd love to see some discussion around
this as it seems like it would go a long way to resolving some common pain
points in PHP without BC like:

   - type hints
   - inconsistant function naming
   - needle/haystack
   - unicode

And, the method chaining of common string/array manipulations makes for
cleaner, easier to read code.

I've used the scalar objects extension and found it a pleasure to use over
the standard function but I can't use it in my larger client projects due
to it not being in the core and it's experimental status.

​Also see: https://github.com/rossriley/php-scalar-objects​



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

Reply via email to