Re: [RFC] Partial Function Application v2

From: Date: Sun, 19 Oct 2025 14:51:11 +0000
Subject: Re: [RFC] Partial Function Application v2
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-128866@lists.php.net to get a copy of this message
> On 9. Oct 2025, at 20:54, Larry Garfield <larry@garfieldtech.com> wrote: > > One outstanding question is whether to allow reordering of parameters in the PFA closure by > using named arguments. With this implementation, Arnaud says it's possible to do if we decide > to. I am still concerned that it would create too much complexity and confusion in practice. But > we're willing to go with a broad consensus if it emerges. Hi I also find it confusing if I define a different parameter order in the partial function and then this order is automatically overridden to the original order rather than being used. When I consciously change the parameter order, I expect this order to be preserved in the resulting function. That's the behavior I would expect as a developer. Cheers Joshua Rüsweg

« previous php.internals (#128866) next »