Re: [RFC] Short Closures 2, aka auto-capture take 3

From: Date: Fri, 01 Jul 2022 08:12:33 +0000
Subject: Re: [RFC] Short Closures 2, aka auto-capture take 3
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-118147@lists.php.net to get a copy of this message
On Thu, Jun 30, 2022 at 7:37 PM Arnaud Le Blanc <arnaud.lb@gmail.com> wrote: > > 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. Ah, I see that you have updated the PR indeed: https://github.com/php/php-src/pull/8330/commits/5bb0a1c8d032666079db5dab94b4b22b2afa9dac (and thanks for the test). PS: so the link I gave before is now outdated ^^' I should have given https://github.com/php/php-src/pull/8330/commits/9dec265adba44dcf9d2cadc05dd5ad842fc4ae66#diff-85701127596aca0e597bd7961b5d59cdde4f6bb3e2a109a22be859ab7568b4d2R7318-R7320 -- Guilliam Xavier

« previous php.internals (#118147) next »