Hi all,

On Wed, Mar 9, 2016 at 6:50 AM, Sean DuBois <s...@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
yohg...@ohgaki.net

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to