Re: [RFC] Short Closures 2, aka auto-capture take 3
| From: | Arnaud Le Blanc | Date: | Thu, 30 Jun 2022 17:37:20 +0000 |
| Subject: | Re: [RFC] Short Closures 2, aka auto-capture take 3 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-118143@lists.php.net to get a copy of this message | ||
On jeudi 30 juin 2022 18:29:44 CEST Guilliam Xavier wrote:
> Ah? Sorry, I had interpreted
>
> https://github.com/php/php-src/pull/8330/files#diff-85701127596aca0e597bd796
> 1b5d59cdde4f6bb3e2a109a22be859ab7568b4d2R7318-R7320 as "capture the
> *minimal* set of variables for *both* arrow functions and short closures",
> but I was wrong?
No, you are right, the PR changes arrow functions too. But in the RFC we
decided to not touch the arrow functions for now.