Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96690 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80918 invoked from network); 1 Nov 2016 05:54:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Nov 2016 05:54:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:34648] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CC/70-07317-51E28185 for ; Tue, 01 Nov 2016 00:54:31 -0500 Received: (qmail 52477 invoked by uid 89); 1 Nov 2016 05:54:25 -0000 Received: from unknown (HELO mail-wm0-f43.google.com) (yohgaki@ohgaki.net@74.125.82.43) by 0 with ESMTPA; 1 Nov 2016 05:54:25 -0000 Received: by mail-wm0-f43.google.com with SMTP id p190so186503507wmp.1 for ; Mon, 31 Oct 2016 22:54:25 -0700 (PDT) X-Gm-Message-State: ABUngveIcn6hI7loaPQbol78bd44VjSuGSf1mJ/e+ZuXr2yTZLYa0QoGD+5dt11HycIzTIxZmtgElBg+/LQIsQ== X-Received: by 10.28.96.4 with SMTP id u4mr3488307wmb.86.1477979659110; Mon, 31 Oct 2016 22:54:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.205.42 with HTTP; Mon, 31 Oct 2016 22:53:38 -0700 (PDT) In-Reply-To: <82bf29ec-1971-cbe5-2e0b-3c9e0bd94eb7@syberisle.net> References: <44244cfd-c8ad-e0a9-4e70-380a8a8c940c@syberisle.net> <01f2f3da-592b-fd23-709d-ad620422f56d@fleshgrinder.com> <7fb9a5d5-318d-7ed3-59eb-d9845ed5dec1@gmail.com> <5219c048-66f1-be9a-ae3c-15633a65e263@garfieldtech.com> <82bf29ec-1971-cbe5-2e0b-3c9e0bd94eb7@syberisle.net> Date: Tue, 1 Nov 2016 14:53:38 +0900 X-Gmail-Original-Message-ID: Message-ID: To: David Lundgren Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Allow Iterator to be used with current, next, reset, key functions From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi David and all, On Tue, Nov 1, 2016 at 11:53 AM, David Lundgren wrote: > What if we made ArrayIterator transparently wrap all array's? If you take a look at SPL array object code, you'll see why there are so many missing functions. It's just pain for me to write new method even with simple one. Can we get rid of some features from array objects? and make it simpler? e.g. We don't need 2 ways to store array data, I suppose. Why there are 2 ways? Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net