Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130715 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 8AA9A1A00BC for ; Thu, 30 Apr 2026 07:52:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1777535556; bh=R+un6Fs6kR7JIUiDmE2pRESEKCGorxQIJptZxGuqhxE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=b/CCvo/45cRkMRxeDEbiT2ldNevlQMtk0WouKOJq4y7/zPjQZhLk84NTlywvBwger GkgrIlSt65VlBGNf06oYcHMSijLHh6ne6hNacC3Nk8VxgaMbNtyfODzY2kP/2d1wi1 2wE3gC6FrJyUdwJAcZK5D7P210BY9ENSzUBW6BvSqNzw2C2YG5kG4rRTLXKj8d9emH ARJ4/zg7aF3XuuJt7k5dZAR9vHb56RbB53ij5H/380TpNFPlrKKorYcGjKWkI+8sIZ jghdUlfULutozNGmd486P6fz1zuv07Ur+IP6KlMr4sk9XZSKaPgaBl76Wtx0OhQr4R r8BITya/ow/cw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 98632180511 for ; Thu, 30 Apr 2026 07:52:34 +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, 30 Apr 2026 07:52:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1777535546; bh=mB5Z7obzTO/jKL0O+Bbai2Sl2Pzmajr8HtA7/th0/Cs=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=CIc4tsScY2LkOCE/jjBeurH/AQKcSaNv8yppDR4hQheoqZo07GVIvwLEGb9PZE4Oo cE5dMqVuEUGc/igZXG73EifYCboaIjX1d232E4IUpm2RxeuxHNvHf1LH3AXMu8/ti0 uSjIYNUkx6+szrpHfWJex+r8vUmoyDH2vnlZYSH1K++6PCuLiZcG1siOSYVuJClM6m cQjC563hG2o3AlWJd09Qy9yIY8Yq/40JEQdrLmp7PwnMLMryHBBnOFwyZDofXoMB3t Q4wNBgVKqbjNt+W2Qj+F4eB8BjdoQfDwVa5OoQWRKnjvSC9ul2d2dMoPrayy3DopuQ THaRFvOo84a0A== Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Thu, 30 Apr 2026 09:52:26 +0200 To: Rob Landers Cc: internals@lists.php.net Subject: Re: [PHP-DEV] [RFC] Context Managers In-Reply-To: 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> <8ab92f4f-0fce-4239-9732-2d5c7ae1159d@app.fastmail.com> Message-ID: 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-04-30 09:42, schrieb Rob Landers: > I'd argue CMs are mechanisms, not policies. They encode setup and > teardown. Suppression is an error-handling policy decision that should > be visible at the call site, not mixed with the concerns of setting up > and tearing down resources. I agree here and noted something similar in the “RAII vs Context Manager” thread: https://news-web.php.net/php.internals/129463 (last paragraph). Best regards Tim Düsterhus