Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130784 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 10AEB1A00BC for ; Wed, 6 May 2026 13:31:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1778074273; bh=uHR/pdha1rdFVHxNwGz9DFOf+KKGchMHXMEH9ePU+Zg=; h=Date:From:To:Subject:In-Reply-To:References:From; b=MjKA+L90M2022QCKjxNu0L+51kRmEkswcrsyF1D1X7e03tYIF3pMmY7uvQNtjz6qz aGSx/Jw+TMiZ8+N209aYMgExTvrEk+uqN/yYakRkjca/91PzSXds0NALFEKE3JlJ+N BEo764qBBddrZTZu5iAVuKAcUIu+KzmEyTJPJyLuH53obzRk1rl7eG1IXlUMcitxTe MOyVBv6EYomlYKEKJbQx/knnZ12D1Flc957SImZsN6TEDxyc5HJ//avvzar5ZG13BH euNUaR2eE7zhk18PVW0FdSgjWdq9m8Z3fpDDHP73oJBn8zodLjslZ+HSuyjzOTcc/d gG6bH4PDffTow== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4CEAB1801D4 for ; Wed, 6 May 2026 13:31:12 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 ; Wed, 6 May 2026 13:31:11 +0000 (UTC) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id B5BA7C5DC4A for ; Wed, 6 May 2026 13:31:52 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 5B6B46053C for ; Wed, 6 May 2026 13:31:05 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 88691102F279D for ; Wed, 6 May 2026 15:31:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chilliet.eu; s=dkim; t=1778074264; h=from:subject:date:message-id:to:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=IdiPZrwVEEZtXHu8P1hwzkL727KM/0gaADC+m9ngrYY=; b=iv6KDhECGHNTViGwXjsU3hyjQ4l12CC9OeFpHeX+0cQ6sw/ARMbWLOonkq2ZDtdzVOzDTi GXJBmAkxVMCcIT1XlBPxW/z0YY68oYdhQQyBbFBVJ7BhQdluEge767am9S2sCzw4eg+rPc V1/msbb2wJwZZw9DYfyXnqneGRy6grAGGD3szAVrZUHa8lJ61KpGEwmSEz+Yry4gTrlp2+ dcDRXsx+DBbZsAAumVNmC1TgCl50fwkqnzwD+JMRDg8uUms5ld4KlSHS6msVDSSqhxVIEZ pU+nzHzW5O4/KCg2+aHEvWDym02DWcOEeBu3sAnKcHy9rCld/Vg8SjNGr+L31A== Date: Wed, 06 May 2026 15:31:01 +0200 To: php internals Subject: Re: [PHP-DEV] [RFC] Context Managers User-Agent: K-9 Mail for Android In-Reply-To: <3b2b863d-d179-40c9-ad26-8605e854a331@app.fastmail.com> References: <4985896b-c80a-4302-912e-9f572a260fb5@app.fastmail.com> <88716CA9-38E4-45CA-9471-2D8928CF4DE2@rwec.co.uk> <3b2b863d-d179-40c9-ad26-8605e854a331@app.fastmail.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 X-Last-TLS-Session-Version: TLSv1.3 From: come@chilliet.eu (=?UTF-8?Q?Co=CC=82me_Chilliet?=) Le 22 avril 2026 20:28:15 GMT+02:00, Larry Garfield a =C3=A9crit=C2=A0: >I will stop here, however, and ask for input from the audience=2E (Not j= ust the regulars in this thread of late, but all of you reading this=2E) I= ncluding if you have an alternate approach to the three listed above that w= ould have notably fewer cons=2E > >--Larry Garfield I prefer the void return and throw if needed approach, it looks way more u= nderstandable=2E I was confused by that part when reading the RFC and reall= y surprised that returning an Throwable on success is ignored, which is not= clear at all when reading the interface=2E The in-out parameter works too but is a bit weirder, and makes it unclear = what happens if exitContext throws=2E It's also unclear to me in the current desugarized version what happens wh= en exitContext throws, the reset of the context var does not happen ? There= is nothing to handle that=2E Co=CC=82me