[RFC] Iterable

From: Date: Fri, 10 Jun 2016 23:37:36 +0000
Subject: [RFC] Iterable
Groups: php.internals 
Request: Send a blank email to internals+get-93893@lists.php.net to get a copy of this message
Hello, 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 Piotrowski

« previous php.internals (#93893) next »