[RFC] Non-capturing catches

php.internals

Max Semenik

6 years ago
Hiya, I'd like to present a new RFC for your consideration: https://wiki.php.net/rfc/non-capturing_catches Briefly, I want to be able to do the following: try { foo(); catch (SomeExceptionClass) { bar(); } Please share your thoughts! :)
-- Best regards, Max Semenik

Stas Malyshev

6 years ago
Hi! On 4/7/20 6:17 AM, Max Semenik wrote:
> Hiya, I'd like to present a new RFC for your consideration: > https://wiki.php.net/rfc/non-capturing_catches > > Briefly, I want to be able to do the following: > > try { > foo(); > catch (SomeExceptionClass) { > bar(); > }
Looks good to me.
-- Stas Malyshev smalyshev@gmail.com

Max Semenik

6 years ago
Just a heads up, I'll put https://wiki.php.net/rfc/non-capturing_catches up for vote in a couple of days.
-- Best regards, Max Semenik