Re: [RFC][Discussion] Closure optimizations
| From: | Claude Pache | Date: | Sat, 31 Jan 2026 01:31:19 +0000 |
| Subject: | Re: [RFC][Discussion] Closure optimizations | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-129958@lists.php.net to get a copy of this message | ||
> Le 31 janv. 2026 à 00:43, Ilija Tovilo <tovilo.ilija@gmail.com> a écrit :
>
> Hi everyone
>
> A week ago, I sent an e-mail to internals regarding two closure
> optimizations with some subtle BC breaks. [1] While nobody objected, I
> decided to create a short RFC anyway to avoid any possible controversy
> due to the BC breaks. You can find it here:
>
> https://wiki.php.net/rfc/closure-optimizations
>
> Regards,
> Ilija
>
> [1] https://externals.io/message/129825
Hi,
The examples of the RFC all use the
function () { } construct. I guess it does also
apply to closures constructed with fn() => ?
—Claude