On Mon, Jun 30, 2025, at 2:28 AM, Tim Düsterhus wrote: > Hi > > Am 2025-06-28 07:06, schrieb Larry Garfield: >> https://wiki.php.net/rfc/partial_function_application_v2 > > Some thoughts, I did not yet take an in-depth look: > > - Will PFA be available in constant-expressions, following the “First > Class Callables in constant expressions” RFC > (https://wiki.php.net/rfc/fcc_in_const_expr)?
We hadn't discussed it, actually. I'll have to ask Arnaud how difficult that would be. If it's easy enough, I'd say yes it should, but if it proves complicated we may need to punt on it. I'll update the RFC once we know. > - It would be good to include an example section not using a regular > “free-standing” function in the RFC. The RFC already mentions that all > callables are supported, but explicitly showing an example for the > possible alternative syntaxes (including `$foo->bar(?)` and `$foo(?)` > would be useful. I have added more examples that cover non-function things. > - Starting with the “RFC Impact” section, several sections of the > template are not filled in. Trimmed, as there's nothing to say there AFAIK. --Larry Garfield