Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113798 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 97718 invoked from network); 26 Mar 2021 03:01:13 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Mar 2021 03:01:13 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 68E701804D3 for ; Thu, 25 Mar 2021 19:57:22 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 25 Mar 2021 19:57:21 -0700 (PDT) Received: by mail-qv1-f52.google.com with SMTP id by2so2262459qvb.11 for ; Thu, 25 Mar 2021 19:57:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=pcURghZLyaH7PwAvVRSyNoYMA8jmP08oIMDJu8ysU/0=; b=NncEhZKfuUWWHEurlzj0f7FTHXFyoai89cDFhYhBVTjlq/3XZjUZu6uWOh37yzHIRk 2CW2auOHMQx4nTb3QIOkw71BWkm8SAl1kKRpgsUh5dIkMncORQiDmI8XkdVm3xcLRdwY 2O40e8VrdVDIo/MCq7Ihufd4sv4frEKhmNNl7EuWnv36YoVhBaNL7/q8kdV1L2tp9OYu NgpK4cOjtdDX+Mjd0ZG8OEBVGrPceR3229eI6enZQVx6qfDg5MZqvoSrJF8W+Uiqr6fG 8dIRj2255QEiO7epHjfccYwkD58tciFATKG6U03qT1zkAiZZPX2Qctgo1kdIpwrj7tEP uNdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=pcURghZLyaH7PwAvVRSyNoYMA8jmP08oIMDJu8ysU/0=; b=hdiR6sl6YxryekZM0quPPvWtLlVKz9AsBTWlaMEQsQ37pRRMS3agcf1THLbgRtVT7m YQrq5AmsF/7mSmRiKpayB9i7Tl7kF531IswDORHSewefpCycjTMJCrYZafqn74VQr90x pacLdk+Grxa5xePSrr2kzPRYcKMJcwzF6WR00YR8GZEWcKCU7f0dEWgN2g2m763gDRuq E9rov5HySw30+5J3wQ6eYqvDUv0NtvTmq7TNB4lfu4euyKIjblfy8d8gh/7WP6UK/ONe +qMR/fht+H0eNKQ1iM//PhchsH+RpkfeIFDImDBgGWSG45ID2zpyeDY58bk8oaMDu+nl psGw== X-Gm-Message-State: AOAM531fs+C/S9w+eQDO7X6kN3FFqNzaM4yqXEzxt6Sfs1yymTDkyvSv 8L+R2j8uUJhop+fGdwrh53C1sw== X-Google-Smtp-Source: ABdhPJyx+puucWoImjiBZyGHivOjdUtCJEpi+0Cfc1M5FIZlXu6iu5jlmVtrQuErm7RFepYG9akRfA== X-Received: by 2002:a05:6214:523:: with SMTP id x3mr10887655qvw.27.1616727438793; Thu, 25 Mar 2021 19:57:18 -0700 (PDT) Received: from [192.168.1.239] (c-24-98-254-8.hsd1.ga.comcast.net. [24.98.254.8]) by smtp.gmail.com with ESMTPSA id h16sm5022246qto.45.2021.03.25.19.57.18 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Mar 2021 19:57:18 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) In-Reply-To: Date: Thu, 25 Mar 2021 22:57:17 -0400 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: References: <88c9eb5f-f80c-4869-b7f8-1b58b9e2eaa3@www.fastmail.com> <4DC3B66E-A91A-4AA9-8872-8EE9DE92C2D4@cschneid.com> <8c72c162-83c0-7c7f-2fa7-4fbe3fb30a4a@gmail.com> <605bae82.1c69fb81.f49f7.d11eSMTPIN_ADDED_MISSING@mx.google.com> <919e30e7-3e5e-d955-7bb4-1e1b5825cdd1@gmail.com> <635DD146-FC6F-4991-8D2C-5A6B492722D5@newclarity.net> <734f12de-da98-6b76-c2fe-8682f4d177aa@gmail.com> <36E45DD6-E2BD-4801-BAAE-4355C83D1AC3@newclarity.net> <538F5888-4B42-42AA-8312-872A836B0FB9@newclarity.net> To: Rowan Tommins X-Mailer: Apple Mail (2.3608.120.23.2.4) Subject: Re: [PHP-DEV] [RFC] Auto-capture multi-line closures and shortfunctions take 2 From: mike@newclarity.net (Mike Schinkel) > On Mar 25, 2021, at 1:57 PM, Rowan Tommins = wrote: >=20 > On 25/03/2021 17:14, Mike Schinkel wrote: >> Are you proposing auto-capture but one that is note able to change = the variable's value in the outer scope? >=20 >=20 > I'm not proposing that, Nuno is. That's what this RFC proposes. Your earlier comment confused me. I thought you were describing a = genuine concern when you mentioned by-value =E2=80=94 so I assumed the = RFC had asked for by-ref even though I did not think it had.=20 But instead you were being disingenuous by not answering a legitimate = question and instead implying that those who support the RFC lack reason = and that they should just accept the status quo (copied below for = reference): > On Mar 25, 2021, at 12:50 PM, Rowan Tommins = wrote: > On 25/03/2021 15:02, Mike Schinkel wrote: >> Can you please clarify why "function(...) use(...) {...}" can't be = their solution when someone needs by-reference capture? > For the same reason - or lack of reason - why it can't be the solution = when they need by-value capture. In other words, whatever reason people = have for wanting this RFC. Instead, why not simply state your position against the RFC = transparently =E2=80=94 as you eventually did in another reply =E2=80=94 = and leave it at that? Then the deciders can go off and make their = decisions on the RFC as they will. -Mike=