Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129648 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 DFEF81A00BC for ; Thu, 18 Dec 2025 00:21:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1766017322; bh=wkLyfCqILXqAuSGyBFFJmVa1nK50ZCbfwR3IYQX1kak=; h=Date:Subject:From:To:References:In-Reply-To:From; b=A1gzVFI+yQIhm3OJLenN9IbdkFgJZDU9jLBis0mCKW4VbDkJWjXCidiS8HAU84E66 mT25dFJT/hzipgKBziUsrlqvnGMgm1QuMgAchPhsdz9fAqqsRi57MbPeh38iifMXhD gW7XOSUzwwXJP7GLgcKNgiWLE+Oue5evInThDrnkWvjT7NV8lUQ4sRwoSLD3MHby91 fYwDgmPXEgPtvxZ10BUw4jowCY+k+yu2ynQlIUzSmqoX5QaTG5AKpCDRc+TrgzouQH vsysruFlJs9gTopqnO50zfwnmnQSB1Xi6QTMawLMyIoEeFJ/qqtaRh6LYB8+VlHJda mUHsAZSHzoh8Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 02C6E180556 for ; Thu, 18 Dec 2025 00:22:01 +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 ; Thu, 18 Dec 2025 00:21:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1766017301; bh=mAKOa3tSOuRNdM6ESYLy0NM4iRIRg3T/9UWCMHzKSI4=; h=Message-ID:Date:MIME-Version:Subject:From:To:References: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=TxIS63Mu3R2QtdA8YiGPJoD0TbWODywrKqgDjl69aRfo0YjtTrJ2qGa3ozOJQ+UYF nP7EaPDQV0uOx7RoMOVRZ5ntaZWMIFEeppdfaPGzYrVSXL2LKRe+z8rxbV1+ypY6Zh 01+sy1Iw1GCyQHimp0BpCbEHIQHFHYtn/CjtfrxXcIWGTq7fo86JlyCOcSFaEGQyks jsphN1Zvto3xNgB70e6XOMT/Z8TsGwTLw9gBYWM30BIadl5xQ3c9SWvx9ybO5LI/M4 HJmIKg3uM2NwIdSb25eYQ8qxPVfaGJJfCg7VWfygLwz1DncxiT+ASVwjwgs9hOBtqe r6l72YShMtz+g== Message-ID: <79e5c8a8-774d-47b0-b076-c9efb659f1fc@bastelstu.be> Date: Thu, 18 Dec 2025 01:21:40 +0100 Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC][Discussion] use construct (Block Scoping) To: Seifeddine Gmati , internals@lists.php.net References: <99421ea8-b7ef-4049-aa74-31e8433309a8@bastelstu.be> Content-Language: en-US In-Reply-To: <99421ea8-b7ef-4049-aa74-31e8433309a8@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 to also put it into the correct thread: As just mentioned in the “Examples comparing Block Scoped RAII and Context Managers” thread I have (tried to) improve the explanation at the start of the “Proposal” section: https://wiki.php.net/rfc/optin_block_scoping?do=diff&rev2%5B0%5D=1765892090&rev2%5B1%5D=1766015568&difftype=sidebyside No functional changes have been made. Particularly the desugaring already represented the described semantics. They are now just spelled out more explicitly in “English prose”. And with that I'm *really* going to be off for vacation. Best regards Tim Düsterhus