Re: [RFC] Context Managers, v2

From: Date: Fri, 06 Nov 2026 11:12:12 +0000
Subject: Re: [RFC] Context Managers, v2
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-133024@lists.php.net to get a copy of this message
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? > It basically swaps the two-method approach in favor of "it's a generator, > you're welcome." The result is, I think, both simpler and more flexible, > and resolves a number of other issues as well. More details in the RFC. > > There is a linked implementation, though Arnaud warns it's only partially > complete so go easy on it. :-) But the design in the RFC is all ready for > review. > > -- > Larry Garfield > larry@garfieldtech.com >

« previous php.internals (#133024) next »