Hi

Am 2026-01-23 00:29, schrieb Joseph Leedy:
While I appreciate all of the hard work that Seifeddine and you put into this RFC, Tim, if I had the power to vote, I would vote "No" on this RFC as I like the approach laid out in the Context Manager RFC much better.. Thank you both!

I'd like to note that while the two RFCs share some of the scope, neither is a direct replacement of the other. I think Rowan previously summarized it well in this email: https://news-web.php.net/php.internals/129630.

The focus of the “let construct (Block Scoping)” RFC is enabling block scoping - as the name implies. The examples in the “Examples” section of the RFC are intended to reflect some real-world situations where either Seifeddine or I would've liked to have block scoping. Except for the “process_file()” example, I don't believe the Context Manager RFC (as currently proposed) would be a suitable replacement.

Best regards
Tim Düsterhus

Reply via email to