Re: [RFC] Partial Function Application v2

From: Date: Thu, 30 Oct 2025 19:53:22 +0000
Subject: Re: [RFC] Partial Function Application v2
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-129011@lists.php.net to get a copy of this message
On Thu, Oct 30, 2025 at 7:46 PM Larry Garfield <larry@garfieldtech.com> wrote:
>
> On Thu, Oct 9, 2025, at 1:54 PM, Larry Garfield wrote:
> The one outstanding question is whether we allow reordering using named arguments or preserve
> the underlying order.  Arnaud says either one is doable.  So far, only 2 people have commented on it
> (favoring reordering).  We still want feedback from more people to see if there really is a
> consensus one way or another.  (2 people is too small a sample size to draw any conclusions.)

> Also, if anyone not named Tim would like to weigh in, now is the time. :-)

For what it's worth:

```
function f($a, $b, $c) { echo "$a-$b-$c"; }

$f = f(c: ?, b: ?, a: ?);
$f(1, 2, 3);
```

I expect this to print 3-2-1, intuitively. "c" is the new first
parameter in the "function definition" for me.

So count me as "reordering".

Kind Regards,
Volker


Thread (54 messages)

« previous php.internals (#129011) next »