Re: [RFC Discussion] Catching multiple exception types
| From: | Sean DuBois | Date: | Tue, 08 Mar 2016 21:50:59 +0000 |
| Subject: | Re: [RFC Discussion] Catching multiple exception types | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-91556@lists.php.net to get a copy of this message | ||
On Tue, Mar 08, 2016 at 04:42:29PM -0500, Pierrick Charron wrote:
> Hi internals,
>
> Bronisław Białek and I would like to start a discussion about allowing
> multiple exception types to be caught in a single catch statement.
>
> https://wiki.php.net/rfc/multiple-catch
>
> A working implementation and tests are available in the RFC.
>
> We are waiting for your constructive feedback and thoughts.
>
> Thanks
> Pierrick
Hi!
It may be an issue that this is close in design to [0] union types.
This RFC would be *great* for code quality, just might be a subset of
union types.
thanks
[0] https://wiki.php.net/rfc/union_types