Re: Re: rfc: pow-operator
| From: | Pierre Joye | Date: | Sun, 24 Nov 2013 21:44:52 +0000 |
| Subject: | Re: Re: rfc: pow-operator | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-70362@lists.php.net to get a copy of this message | ||
On Nov 24, 2013 9:58 PM, "Robert Williams" <rewilliams@thesba.com> wrote:
>
> > On Nov 24, 2013, at 8:57, "Pierre Joye" <pierre.php@gmail.com> wrote:
>
> >
> > it not be possible to do something similar than isset? Changing
> > pow from a function to operator? The big advantage is that any
> > existing code will benefit from it without code changes.
>
> As for existing code (and new code where people will inevitably use
pow()), can the function call be optimized away?
That is exactly what I asked. To make pow an operator, like isset, speed
improvements will be the same than with using **.