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]

Reply via email to