Hi

Am 2026-04-30 09:42, schrieb Rob Landers:
I'd argue CMs are mechanisms, not policies. They encode setup and teardown. Suppression is an error-handling policy decision that should be visible at the call site, not mixed with the concerns of setting up and tearing down resources.

I agree here and noted something similar in the “RAII vs Context Manager” thread: https://news-web.php.net/php.internals/129463 (last paragraph).

Best regards
Tim Düsterhus

Reply via email to