> On 24 Aug 2024, at 01:29, Ilija Tovilo <[email protected]> wrote:
>
> The "hard to come by" part is referring to the engine, which is quite
> optimized for the current semantics. Some of PHPs quirky semantics
> make it hard to improve it further, this being one of them.
Thanks for clarifying. Out of curiosity, how much optimisation do you imagine would be possible if
the lookups were done the same was as classes (ie no fallback, names must be local, qualified or
imported with use
)?
I am aware this is a BC break. But if it's kosher to discuss introducing a never ending BC
break I don't see why this isn't a valid discussion either. It would give *everyone* that
elusive 2-4% performance boost, would resolve any ambiguity about which function a person intended
to call (the claimed security issue) and would bring consistency with the way classes/etc are
referenced.
Cheers
Stephen