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

This is only part of a thread. view whole thread
  105266
April 13, 2019 09:24 rowan.collins@gmail.com (Rowan Collins)
On 13 April 2019 10:09:20 BST, Stijn Peeters <ik@stijnpeeters.nl> 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: https://github.com/php/php-src/commit/d3b484df8268f7ab31c4ac39734d4b68ce2e6159 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]