Hi Sean and Yasuo

I agree that they are somehow related, but I also think (and I might be
wrong) that the behaviour of the Multi-Catch is obvious and I don't see how
this syntax/feature could be interpreted otherwise. The multi-catch don't
have any open-issue that the Union-Types have like weak types since it only
deals with Exceptions. Also, we still don't know if we'll one day have the
Union-Types since there are those open issues and it would be sad to wait
something that could never append. It's IMO pretty safe going forward and
if required in the future change the implementation when needed (Behaviour
will stay the same, unless you see other behaviour that this syntax could
have in this same "catch" context).

Pierrick

On 8 March 2016 at 16:50, Sean DuBois <s...@siobud.com> wrote:

> 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
>

Reply via email to