Re: [PHP-DEV] [RFC] Spread Operator in Array Expression v0.2

This is only part of a thread. view whole thread
April 13, 2019 09:24 (Rowan Collins)
On 13 April 2019 10:09:20 BST, Stijn Peeters <> wrote:
>Is anyone aware of other arguments for not allowing normal arguments >after >unpackable arguments in function calls?
CHU Zhaowei pointed to this git commit which suggests it's an implementation issue rather than a design decision: From Nikita's excellent commit message, it sounds like normal parameter passing is compiled in an optimised way that wouldn't be safe if run after a spread operator was expanded. Rather than adding a whole bunch of complexity, the edge case was just made into a documented limitation. Regards, -- Rowan Collins [IMSoP]