Re: PHP new proposal

From: Date: Thu, 29 May 2014 15:22:19 +0000
Subject: Re: PHP new proposal
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-74633@lists.php.net to get a copy of this message
I don't think there's an RFC, but Nikita wrote at length about it and created a PHP extension to allow for users to define their own methods on primitive types: http://nikic.github.io/2014/03/14/Methods-on-primitive-types-in-PHP.html This work was then used by Ross Riley who has attempted to define what these methods should be: https://github.com/rossriley/php-scalar-objects Hope this helps. On Thu, May 29, 2014 at 8:45 AM, Kris Craig <kris.craig@gmail.com> wrote: > > > > > > A similar but different idea has already been proposed, namely methods on > > scalars and arrays, which is Nikita Popov's (aka nikic) idea. > > > > Do you know if there's an RFC for that one? I vaguely remember reading > something about it but I didn't see it on a quick scan of the RFC page. > > --Kris >

« previous php.internals (#74633) next »