Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130793 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 3A5061A00BC for ; Thu, 7 May 2026 13:12:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1778159554; bh=GiVQz1Rx5imz7UIONfylHulmH21hSp6w1dJY8mPonqA=; h=Date:From:To:Subject:In-Reply-To:References:From; b=kQ/jBNSrXXC19vkknMWDZlrm5nlWqvokGzbSzIaYATjBfJEDdYuKwGBEhnWlPW63m D4x+OV7spN/nM+cxfAIB7TT3jZLyti0u0O6JyLmLQEUIPSQlpYoPU3XVoJwdy3gGiK 3OYKQv+kMEa09KMMMjEbGYnCZhAuTSUed56YK+yn5vU4bsBATa0gjVwN1+8hCdgDSa Q8CW+966fpES5YhuOm4HTFfZhe02Ghk0VEUMlaU8ouEQZtR7aPTVQ47eeOmXg6W0/b Iq3iYHtqTbQtca3HMSMb0DzmrmuxtSnsWVmksdg/NbHBK/J6MmMKCRH64RFrT6vj0C V3k7u8MbmJ88w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4760118002E for ; Thu, 7 May 2026 13:12:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from fout-b2-smtp.messagingengine.com (fout-b2-smtp.messagingengine.com [202.12.124.145]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 7 May 2026 13:12:33 +0000 (UTC) Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49]) by mailfout.stl.internal (Postfix) with ESMTP id F1DA71D000AC for ; Thu, 7 May 2026 09:12:26 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Thu, 07 May 2026 09:12:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1778159546; x=1778245946; bh=GiVQz1Rx5imz7UIONfylHulmH21hSp6w1dJY8mPonqA=; b= VPZE8KKLIaGwmMMusrPGIQ4CxGzixhiqj68+AM7Rsnp3i8Ms0ryjZ+ztbEBr/R/V 4iakhgHfdb5LhULWZQvYBT81WYpesxs4aJfKi3+MGX3524mcrzf541p1s9Wn/VJv SFYddxVInFpa+Z3zF82wzzJ/fxGWm0G5fwRzHXveUPhQzJXv/lqsmtVu02UuY6ey Q8JhREgbCWRcj1tJVv7MxkiM4q9E1jnXClpD3Cn9m1z7F+J+tju5+YIxASSEkBDx rQ/XrqPKKam4lRr9JAHHI84dUDCtodtcxpasRq3phCEpr+KlK9XJmPcMzKUmevY+ DoncQyzG72z7S17F8peeVg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1778159546; x=1778245946; bh=G iVQz1Rx5imz7UIONfylHulmH21hSp6w1dJY8mPonqA=; b=qITTAmhCQGEDcHkxK pE6g+8xo+jAfTlG8vECFFOgNmFDPwgo4M9jNUtbYmaFoVyJxXe7TwX0ixPyLl6aE YKZxrLYyIFILtqY5vkGCCjT6uHLsNq3l02PTJCQ5yGp8FAqDGDOoc3MeoN2QlPmy 5idXh7dC5BAmRppG2kAF5geptHlXm7n8EAMOPRLgIJlILhsC/yLwkA3JCVJYEaRt MeBPDkDPY58GNJA8YHj9S2Ptx3QCk7MeYUjUKWP8oIq7eRUEjdIWYCV6ymeAnrqL ZxOhZ+8kJgO8OSYB3p20qmUr456wxh/WgXOGhfPNE0A4sVPklVyJPn9Zd7m3qdi8 C+v9w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgddutdejheeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpeffhffvufgfjghfkfggtgfgsehtqhhmtd dtreejnecuhfhrohhmpedftfhofigrnhcuvfhomhhmihhnshculgfkoffuohfrngdfuceo ihhmshhophdrphhhphesrhifvggtrdgtohdruhhkqeenucggtffrrghtthgvrhhnpeehle ffteeigfevudetfedugedtudevledugeeugeelheeihfehgfdtkeevvefgleenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehimhhsohhprdhphh hpsehrfigvtgdrtghordhukhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphho uhhtpdhrtghpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 7 May 2026 09:12:25 -0400 (EDT) Date: Thu, 07 May 2026 14:12:24 +0100 To: internals@lists.php.net Subject: Re: [PHP-DEV] [RFC] Scope functions User-Agent: K-9 Mail for Android In-Reply-To: <82D0F837-81DA-48D5-B467-35A8CCF52F9B@hotmail.com> References: <0187D382-80FD-432C-B0D5-B0F9D8783419@hotmail.com> <6B83B07A-0344-4149-BFE9-7F3DD21BBA39@rwec.co.uk> <82D0F837-81DA-48D5-B467-35A8CCF52F9B@hotmail.com> Message-ID: Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 7 May 2026 13:16:27 BST, Bob Weinand wrote: =20 >> I don't know if there's some way to make the lifetime even more restric= ted, so that the use cases of "immediate execution" are allowed, but this k= ind of code is not=2E > >Have you missed this following restriction and example in the RFC? > >> Re-evaluation: The same scope function declaration (same source code lo= cation) invalidates the previous instance=2E Should it still be called, an = error is raised=2E I skimmed past that section, and didn't realise its significance, thinking= it was just covering off edge cases of the implementation=2E I think the core principle behind the various restrictions needs to be mad= e much clearer in the summary of the proposal, because up to that point all= the examples just look identical to normal closures with automatic capture= by reference=2E For similar reasons, perhaps a different keyword would be better, so that = users don't have a wrong expectation of what it means=2E Regards, Rowan Tommins [IMSoP]