Re: [RFC] Operator Overrides -- Lite Edition

From: Date: Sat, 29 Jun 2024 19:52:39 +0000
Subject: Re: [RFC] Operator Overrides -- Lite Edition
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-124059@lists.php.net to get a copy of this message
On Friday, 28 June 2024 at 18:46, Rob Landers <rob@bottled.codes> wrote: > Hello internals, > > I'd like to introduce a new RFC: > https://wiki.php.net/rfc/operator_overrides_lite which extends the > GMP extension to support a limited set of operator overriding to developers. It's designed to > be limited and relatively simple, while still being quite powerful. It would only be available if > you have the GMP extension installed and enabled, but would allow for creating powerful unit > libraries (such as representing money, duration, etc) The design of this RFC is non-sensical. If you want to do operator overloading via an extension, then create a dedicated extension instead of piggy-backing on an already existing extension, this makes even less sense considering the extension is not always available. You wouldn't even need an RFC as you could just write an extension and publish it on PECL and see if people adopt it. As such I will be voting no on this proposal. Sincerely, Gina P. Banyard

« previous php.internals (#124059) next »