Re: [RFC] [VOTE] is_literal
| From: | Craig Francis | Date: | Fri, 09 Jul 2021 14:07:23 +0000 |
| Subject: | Re: [RFC] [VOTE] is_literal | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-115381@lists.php.net to get a copy of this message | ||
On Fri, 9 Jul 2021 at 11:49, Lauri Kenttä <lauri.kentta@gmail.com> wrote:
> is there a compelling reason why the internal names couldn't be marked
> literal
> (even if it's technically "wrong")?
Hi Lauri,
Just again quickly noting we’re only talking about ~0.43% difference,
nothing major in any way.
But we wanted to ensure developers didn't wonder why something was seen as
a literal in one case, but not in another (we wanted to ensure
consistency), because most people don’t know much about how the internals
of PHP work - especially optimisations which are supposed to be kind of
‘invisible’ to developers. This change also helped when a couple of other
compiler optimisations happen:
https://wiki.php.net/rfc/is_literal#compiler_optimisations
Craig