Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129877 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 362291A00BC for ; Fri, 23 Jan 2026 08:20:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1769156445; bh=NJM3DEF1bxXaF2JS7+Ew06szQRX5h0351Jip+4AbeKk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ACahtWTnCr+Cx6axU+C5iA/q4PJNiwg0cDa8/JeWzuaTr+Cxt4ijnN+tnIIf/QE9T PCoKJ+OH1ZKtYc4m+1BjspKOQ10T2UV/TKQuqzAwXNhOW+h+5IJgibsaxB7EU5M88c XhdCjyMNsZHwqEIB+dDkH85wirY4QgkPryqqAf/KPfiGEAxmbaHbfwvtGgNmGlxnAt aTy6jU+zzbYZ0xxTsQF6KT34JxlrXrolM0qkcTT4LcCMyx7wJ7ULV3Mp3JX0Faa5SC 4VfNdBvUHDgf+9CSyQ/WFQ/2xpRJ83NH3QTihhTY2+xU2QCq5fRKc73eX/tVmtwK92 eas0HhyoEtizA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 16B9F180047 for ; Fri, 23 Jan 2026 08:20:45 +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_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Fri, 23 Jan 2026 08:20:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1769156437; bh=IMtVQi5EGo9+a5fidxBI2IjqJt+EHovwjFgRmlAVTpw=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=jjNOwXwb9sTdfe4fvx8OnZlph83VLmdQWEjBIFlK8mOt7gULI27YJItHsm/LHyETz V/oJyD2C0K1A6khQKXeIukwksEOaUQ4KdoKzlwIPHxL3LgRpeZzGTp3Hi6i6F6m9Ev PrVkkwlQt/d2RLyCay3vSSAzv3v3jO6cT3RLgawwM4Ar9tNu4RC6QCudmlPhAM0qAV CfRNML/ruEPjPAiLO7cVmA7bkFh3DizZ8gdEWV5uZRGGagOBJgSY3gFOzggJSGsoNQ pzdkY5IgzfpwmtY1UbZPiHiiXBORp0gW1i/Ajn0Hlsm8w1Ib0YlwZ85vbv/RBHmJvy hoHdtEC20XDxw== Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Fri, 23 Jan 2026 09:20:37 +0100 To: Joseph Leedy Cc: internals@lists.php.net Subject: Re: [PHP-DEV] Re: [VOTE] let construct (Block Scoping) In-Reply-To: <3665e8eb-db54-421b-8ffe-e3b1902caf09@app.fastmail.com> References: <3665e8eb-db54-421b-8ffe-e3b1902caf09@app.fastmail.com> Message-ID: <48689ab4ab0bb680ff9457e406490fa5@bastelstu.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi Am 2026-01-23 00:29, schrieb Joseph Leedy: > While I appreciate all of the hard work that Seifeddine and you put > into this RFC, Tim, if I had the power to vote, I would vote "No" on > this RFC as I like the approach laid out in the Context Manager RFC > much better.. Thank you both! I'd like to note that while the two RFCs share some of the scope, neither is a direct replacement of the other. I think Rowan previously summarized it well in this email: https://news-web.php.net/php.internals/129630. The focus of the “let construct (Block Scoping)” RFC is enabling block scoping - as the name implies. The examples in the “Examples” section of the RFC are intended to reflect some real-world situations where either Seifeddine or I would've liked to have block scoping. Except for the “process_file()” example, I don't believe the Context Manager RFC (as currently proposed) would be a suitable replacement. Best regards Tim Düsterhus