Re: RFC Operator Overloading in Userspace

From: Date: Mon, 04 Jan 2016 11:48:30 +0000
Subject: Re: RFC Operator Overloading in Userspace
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-89986@lists.php.net to get a copy of this message
On Sat, 2 Jan 2016, Sara Golemon wrote: > Patricio Tarantino has asked me to help him propose Operator > Overloading in PHP 7.1 (based in part on my operator extension in > PECL). I think we can expose this to usespace as magic methods with > very little overhead (the runtime check and dispatch is already there, > after all). > > I do think that the "Future Expansion" section bears following through > with as well, but the basic set of methods already hooked for GMP > would be a nice start. > > https://wiki.php.net/rfc/operator-overloading "Limiting Issue: Greater/Lesser are not distinct" That should be addressed in the engine first too (or with) this change. However, operator overloading... cheers, Derick

« previous php.internals (#89986) next »