Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118143 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 8226 invoked from network); 30 Jun 2022 15:45:49 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Jun 2022 15:45:49 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7D10A18054A for ; Thu, 30 Jun 2022 10:37:23 -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=-0.7 required=5.0 tests=BAYES_05,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-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 ; Thu, 30 Jun 2022 10:37:23 -0700 (PDT) Received: by mail-wm1-f47.google.com with SMTP id k129so10392447wme.0 for ; Thu, 30 Jun 2022 10:37:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lHryc5YUELccTxXjhd5o+KPJpw/NPh0bFnsgfVrgyxY=; b=TmA7WrcGf9SnZymvmCvDrfKxWQVLVuBCL69/MTQqWaAMJuqJ3xUZHmQaULeuFZSyZv 5w6Dc7xkBS+wCo3yijNGuYOH0QnQdiKePAVbRIAdbiAnVnAbOCvCSJpg8mws8Ii76dBr TFtpxtRmk1xcWi9FaquoXhZjpacSReZV0Gnefc8i+B3bQiqEvelF9QVLosQxwYRWIB5Y 6onLbn+hBjn9F0sYw/xva4oFHjetIX23UYLgdOup0WAq1xbthfR2fZeZnJ9kNmrjymlp 82Rmq6I5yknTqnwLfPGlvKkv1JzUjfBBeOkmdfqUshC/z4D54UcC/i26ljooo+P9vE+H jTOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lHryc5YUELccTxXjhd5o+KPJpw/NPh0bFnsgfVrgyxY=; b=0JoVQBnWzqybXQ+lfpnT520v/zGOto6pGC++I5isw+hKvtsT/ReQB7F5y0tu5DeLlO KdtLK24CoP5svXmkZ/c5wUMy7y3gMhhWurwlQZNBuiuJYC1GCo+21EQui5Mx/P28b3tp 2dPXqbNpVpvBPNaK5e7RpOE5MzepSJEOPaqAICSCrDuFK55XPWuRJY0IAa6GEDGdZCwe xBSlz2wY6vdnm020ciXebT5mGUShNSHwavacai17knHhFl9AgpXvOQmS2F/DRTMJTAdd OTb8XS6nJEx3gQekAlW4G8njWmN7tP7azmSu4x9bNvD2JS3v94LHYVmUnzrfe6T/q3sS Aweg== X-Gm-Message-State: AJIora+fyD5/yHATfxtlb2h4YtnDltPjscVXnQD982/GqwPpYD7Ap23P Xj/MLN2yszr18w1ecXAdsn4= X-Google-Smtp-Source: AGRyM1s92lh4BAqf4DoEb25dEUDlyQ/HsElVzYEJaaScwUBleFe1/EO5YavlRwDLJLcJI4O3LjgQ4g== X-Received: by 2002:a05:600c:4f0e:b0:3a1:6be3:3075 with SMTP id l14-20020a05600c4f0e00b003a16be33075mr10675964wmq.34.1656610641801; Thu, 30 Jun 2022 10:37:21 -0700 (PDT) Received: from arnaud-t490.localnet (2a01cb04054b5b00e623bd4c235cfc32.ipv6.abo.wanadoo.fr. [2a01:cb04:54b:5b00:e623:bd4c:235c:fc32]) by smtp.gmail.com with ESMTPSA id b17-20020adfe651000000b0021004d7d75asm19546247wrn.84.2022.06.30.10.37.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jun 2022 10:37:21 -0700 (PDT) To: Guilliam Xavier Cc: internals Date: Thu, 30 Jun 2022 19:37:20 +0200 Message-ID: <5584889.DvuYhMxLoT@arnaud-t490> In-Reply-To: References: <2b35605f-8da8-46b1-aec3-00bd1bfe47fd@www.fastmail.com> <7513519.rnE6jSC6OK@arnaud-t490> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [PHP-DEV] [RFC] Short Closures 2, aka auto-capture take 3 From: arnaud.lb@gmail.com (Arnaud Le Blanc) 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.