Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118147 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 56889 invoked from network); 1 Jul 2022 06:21:02 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 1 Jul 2022 06:21:02 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EF59D180211 for ; Fri, 1 Jul 2022 01:12:44 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com [209.85.128.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 1 Jul 2022 01:12:44 -0700 (PDT) Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-3177f4ce3e2so16233357b3.5 for ; Fri, 01 Jul 2022 01:12:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=1qFbuOf0OQ+CuNnL1JqCQvJSjhZbEMxuDhBEQoszG1Y=; b=Kn4BRGwvL3fJS8RMELMgsPZBjxo5LSIOaDdnOaUfGBEO8T/Fguhymy0ZwdsVz2W/Kl x8McaW4c26mH9ptjHxRq7lcfI9wkJRyYIdonbg87j/CcaA7CwiG8/lo6zn+sB4XIHufb IoEccxsndiusx+JO4hq8sv6ucRodjmz5I0JlFGeNSX1lIw0o3GBTawwCI+n+FVQtHF0s kB9tGfh/5J9DqoX7zMWSLTpk+qpy9QI25fXsbP1Y4OhuZoLa0llK2qs924vu7E37dUfm qPMZOF9p5D7vmeANEbthGW6DYEnzEVSi8QgITFA28woPFdo9Fe2T3m5yg5yQP8xPQj7a SDoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=1qFbuOf0OQ+CuNnL1JqCQvJSjhZbEMxuDhBEQoszG1Y=; b=PPHa+n7+Q6FGrY2RhAsbRD958Bud73ncB83kmgvixK/jSstoJqPAYMDOFOvwyQUqeE OnohqI7PN1m/bwrSLjL+YU2/8aQStCfJXqMiARNCOfROAZ2/mFbwln9oqFM9nK4nERpQ 1zB5mYPGZ1AC9KdeixclO+i5SCcyeLIwAzYBi3WzSy1KnVblYAT2QsWaEnCieLVsADmg oH0VhEmG0ZSOD7jXKMUvvT0Ezm3YuzbJEoMv5hHWmM54oruN8gNC7tuCiIrhmbUj2P37 /mMbMT2Mlr8EtuEp0VltoPvo0gy6uB7PiPRV/mWvI+IQxA2SiuxkgQX09u6KQF27oJ4W P8mg== X-Gm-Message-State: AJIora/1gbzGqeCAu/VdXHGckeudiTI4BzXbU4irJbTsWPn7SjWGGG47 2k3PbYwkfVZAyc7R3yU3saH3VozKJFvMQXIdGGaJrGAIwA== X-Google-Smtp-Source: AGRyM1u1lAmF87UxlUdt+nsZ158zkDa8HsqTk4lQD/Crb8iEok6XKqh0rKp527e19KOQam9ySKW46zRI86kasvUFnr0= X-Received: by 2002:a81:af15:0:b0:317:7b2e:ad0b with SMTP id n21-20020a81af15000000b003177b2ead0bmr15207422ywh.181.1656663164113; Fri, 01 Jul 2022 01:12:44 -0700 (PDT) MIME-Version: 1.0 References: <2b35605f-8da8-46b1-aec3-00bd1bfe47fd@www.fastmail.com> <7513519.rnE6jSC6OK@arnaud-t490> <5584889.DvuYhMxLoT@arnaud-t490> In-Reply-To: <5584889.DvuYhMxLoT@arnaud-t490> Date: Fri, 1 Jul 2022 10:12:33 +0200 Message-ID: To: internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Short Closures 2, aka auto-capture take 3 From: guilliam.xavier@gmail.com (Guilliam Xavier) On Thu, Jun 30, 2022 at 7:37 PM Arnaud Le Blanc 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