Re: [RFC] Context Managers, v2

From: Date: Fri, 06 Nov 2026 14:53:57 +0000
Subject: Re: [RFC] Context Managers, v2
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-133031@lists.php.net to get a copy of this message
On Fri, Nov 6, 2026, at 5:12 AM, Benjamin Außenhofer wrote: > Am 05.11.2026, 18:33:14 schrieb Larry Garfield <larry@garfieldtech.com>: >> Hi folks. Based on the feedback and problems with the previous Context Managers RFC, >> Arnaud and I have a new approach to present: >> >> https://wiki.php.net/rfc/context-managers-v2 > > trying to understand, can you implement the file_for_write method in > the code sample to its more clear how that creates a generator? I added a basic implementation to the intro section. Arguably I'd clean it up further and refine it for a real function, but I kept it parallel to the example to make it clearer what is going on. --Larry Garfield

« previous php.internals (#133031) next »