Re: [RFC] Partial Function Application v2
| From: | Larry Garfield | Date: | Mon, 30 Jun 2025 14:55:36 +0000 |
| Subject: | Re: [RFC] Partial Function Application v2 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-127801@lists.php.net to get a copy of this message | ||
On Sat, Jun 28, 2025, at 4:46 AM, Stephen Reay wrote:
> Hi Larry,
>
> I noticed your list of places this applies says "all function/method
> calls" but then doesn't list object invocation (__invoke magic
> method). I assume that's just an oversight in the list of places it's
> applicable rather than an omission in support?
>
> Cheers
>
> Stephen
Yep, that's just an oversight. That should work, although it looks like we don't have a
test for it yet. I have left a note for Arnaud to add one and updated the RFC.
On Sun, Jun 29, 2025, at 7:29 PM, Ben Ramsey wrote:
> Under the section “func_get_args() and friends,” one of the examples shows:
>
> $f = foo(?, ?, ??);
>
> I assume this is a typo?
One too many ?. :-) Fixed thanks.
--Larry Garfield