Re: Deprecation ideas for PHP 8
| From: | Girgias | Date: | Wed, 23 Jan 2019 17:39:57 +0000 |
| Subject: | Re: Deprecation ideas for PHP 8 | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-103811@lists.php.net to get a copy of this message | ||
On Wed, 23 Jan 2019 at 18:30, Rowan Collins <rowan.collins@gmail.com> wrote:
> On Wed, 23 Jan 2019 at 17:25, Girgias <george.banyard@gmail.com> wrote:
>
> > I understand the rationale for functional programming, may I ask
> > in your opinion should PHP have built-in functions for arithmetic
> > operations so that it can be used in such a way without needing userland
> > implementations?
> >
>
> There was a proposal a while ago (Sara Golemon maybe? Or Andrea Faulds?
> Seems like the kind of thing either of them might work on...) to add a
> syntax for using any operator as a callable. I don't think it got beyond a
> thought experiment, but it's an interesting concept, and would
> theoretically remove the need for some of this duplicate functionality.
>
Indeed seems like Andrea Faulds did publish an RFC which is in the
Under discussion section: https://wiki.php.net/rfc/operator_functions
Best regards
George P. Banyard