Re: [PHP-DEV] [RFC] Non-capturing catches

2020-04-07 Thread Stanislav Malyshev
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.

[PHP-DEV] [RFC] Non-capturing catches

2020-04-07 Thread Max Semenik
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