Re: [RFC] Context Managers

From: Date: Wed, 05 Nov 2025 23:08:20 +0000
Subject: Re: [RFC] Context Managers
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-129100@lists.php.net to get a copy of this message
On 04/11/2025 20:13, Larry Garfield wrote:
Arnaud and I would like to present another RFC for consideration: Context Managers. https://wiki.php.net/rfc/context-managers
I haven't had a chance to read the RFC in detail yet, but am really pleased to see it. Ever since I read the description (and design rationale) for Python's implementation, I have been thinking this would be a useful addition to PHP. One small thing I noticed: you list "Generator decorator managers" in Future Scope, and while I agree that a magic attribute would need a bit of thought, including the "standard boilerplate class" under some suitable name seems worth considering. -- Rowan Tommins [IMSoP]

Thread (33 messages)

« previous php.internals (#129100) next »