Re: [RFC Discussion] Catching multiple exception types
| From: | Yasuo Ohgaki | Date: | Tue, 08 Mar 2016 22:08:51 +0000 |
| Subject: | Re: [RFC Discussion] Catching multiple exception types | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-91557@lists.php.net to get a copy of this message | ||
Hi all,
On Wed, Mar 9, 2016 at 6:50 AM, Sean DuBois <sean@siobud.com> wrote:
> 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
Nice and handy!
If we are going to support this kind of code, union types seem better way.
However, I have mixed feeling..
Current PHP has issues like string literal/string type/__toStringed
object are treated differently. For instance,
http://www.phpwtf.org/instanceof-smart
I would like to sort out and fix these kind of issues first. i.e. Let
array type Traversable
Just my .02
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net