Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114158 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 42119 invoked from network); 25 Apr 2021 19:38:36 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Apr 2021 19:38:36 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9B1651804CC for ; Sun, 25 Apr 2021 12:42:27 -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_20,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 25 Apr 2021 12:42:27 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C66775C0048 for ; Sun, 25 Apr 2021 15:42:26 -0400 (EDT) Received: from imap8 ([10.202.2.58]) by compute4.internal (MEProxy); Sun, 25 Apr 2021 15:42:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=VfKpHs HcpNUG1pSyB9b8woBpbKv1WySiTl/8ewUtu6A=; b=TfHM2mHNkAV1RwBRHEfXNQ cOZl/JRaO8eXeZlshd8hn5sF88+qsSAjOJx3MwhbwGhCtPbTPvPECrzwZk6x4L06 A7vMqhOkT4JXBA63FHhyXPRZYzmzvoUOtfq47BTMFMfA9DmfRZeYjB6/fsEjOfGr qyLHz8ZnL+KeXIh7iI7njSqwXWOefQ1quFOtjSLbnv2S1lpk5IRtKqx81b6ku2ar naAkt6HPfjVttsQe1pTkg6mNpc/Dfn4O9VdZB64cW3RNfP0XEBtGQXRq+dS0Y5Kc pTT7iZN1nUmaGH5AfQVEOqQevaEfJVq1/JkKJacjsGMvtbAa6nEV/EVZRSpl7uAg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdduiedgudegfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderreejnecuhfhrohhmpedfnfgr rhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtg homheqnecuggftrfgrthhtvghrnhepgefgueeludekffelfefftdejleduuedviefftddu geegveejjeffleehvdegkeffnecuffhomhgrihhnpehphhhprdhnvghtnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhiesghgrrhhf ihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 88F9D3A02D2; Sun, 25 Apr 2021 15:42:26 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-403-gbc3c488b23-fm-20210419.005-gbc3c488b Mime-Version: 1.0 Message-ID: <820bdbb8-e250-4853-a8ee-2fe3e6ce9697@www.fastmail.com> In-Reply-To: <88c9eb5f-f80c-4869-b7f8-1b58b9e2eaa3@www.fastmail.com> References: <88c9eb5f-f80c-4869-b7f8-1b58b9e2eaa3@www.fastmail.com> Date: Sun, 25 Apr 2021 14:42:05 -0500 To: "php internals" Content-Type: text/plain Subject: =?UTF-8?Q?Re:_[PHP-DEV]_[RFC]_Auto-capture_multi-line_closures_and_short?= =?UTF-8?Q?_functions_take_2?= From: larry@garfieldtech.com ("Larry Garfield") On Wed, Mar 24, 2021, at 11:19 AM, Larry Garfield wrote: > Greetings, Internalians. > > Some months back I proposed an RFC for short functions. > > https://wiki.php.net/rfc/short-functions > > After some discussion, I put it on hold to ensure that it was > compatible with the other discussion floating about around an alternate > syntax for multi-line closures that did auto-capture. It's important > that the syntax of both proposals is consistent. > > Nuno Maduro and i have talked recently and worked out the syntax that > is consistent between both proposals. That takes 'fn' off the table > for short-functions, for reasons discussed in both RFCs. > > To that end, I offer: > > 1) The updated short-functions RFC: https://wiki.php.net/rfc/short-functions > > 2) A new RFC, code by Nuno, for auto-capturing multi-statement > closures: https://wiki.php.net/rfc/auto-capture-closure > > These are separate RFCs and at this time we plan to send them to > separate votes, but I list them together to demonstrate that they have > been developed in a mutually-compatible way. > > Further details in the auto-capture-closure RFC. Hi folks. We've recently added some additional reasoning to the auto-capture-closure RFC, so it's worth giving another read-over. It was also recently featured on an episode of PHP Internals if you want a more verbal case made. :-) Unless there is any significant feedback, we'll be calling a vote for this RFC sometime late this week (Thursday/Friday-ish). Cheers. --Larry Garfield