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

From: Date: Sat, 13 Apr 2019 09:24:55 +0000
Subject: Re: [RFC] Spread Operator in Array Expression v0.2
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-105266@lists.php.net to get a copy of this message
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]

« previous php.internals (#105266) next »