On 11.06.2016 at 01:37, Aaron Piotrowski wrote:
> I would like to propose a new iterable pseudo-type that accepts both arrays 
> and objects implementing Traversable. Values accepted by iterable can then be 
> used with foreach and yield from, or help to reduce type-checking logic in 
> general.
> 
> Please review the RFC here: https://wiki.php.net/rfc/iterable 
> <https://wiki.php.net/rfc/iterable>

Thanks, Aaron!  I definitely like this idea (I'm not sure about the
details yet – would have to thoroughly investigate), as it is apparently
solving a long-standing issue, and is in my opinion a cleaner solution
than (explicitly) having to resort to a union type.

-- 
Christoph M. Becker


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

Reply via email to