Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93893 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17118 invoked from network); 10 Jun 2016 23:37:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2016 23:37:42 -0000 Authentication-Results: pb1.pair.com header.from=aaron@trowski.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=aaron@trowski.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain trowski.com designates 199.38.81.6 as permitted sender) X-PHP-List-Original-Sender: aaron@trowski.com X-Host-Fingerprint: 199.38.81.6 mercury.negativeion.net Received: from [199.38.81.6] ([199.38.81.6:56814] helo=mercury.negativeion.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 45/F1-04630-54F4B575 for ; Fri, 10 Jun 2016 19:37:41 -0400 Received: from localhost (localhost [127.0.0.1]) by mercury.negativeion.net (Postfix) with ESMTP id 51B153AA0CA5 for ; Fri, 10 Jun 2016 19:37:38 -0400 (EDT) X-Virus-Scanned: amavisd-new at negativeion.net Received: from mercury.negativeion.net ([127.0.0.1]) by localhost (mercury.negativeion.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jgl8VbFsDskA for ; Fri, 10 Jun 2016 19:37:37 -0400 (EDT) Received: from [10.0.1.3] (unknown [192.119.134.23]) by mercury.negativeion.net (Postfix) with ESMTPSA id B8BC03AA0C8B for ; Fri, 10 Jun 2016 19:37:37 -0400 (EDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_1A4C2846-CD67-4774-ACE7-9183CEA102BB" Message-ID: <8284FE1F-70EE-4DB6-A945-0C57A4C99DCC@trowski.com> Date: Fri, 10 Jun 2016 18:37:36 -0500 To: PHP internals Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) Subject: [RFC] Iterable From: aaron@trowski.com (Aaron Piotrowski) --Apple-Mail=_1A4C2846-CD67-4774-ACE7-9183CEA102BB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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 = Thanks! Aaron Piotrowski= --Apple-Mail=_1A4C2846-CD67-4774-ACE7-9183CEA102BB--