Re: Allow Iterator to be used with current, next, reset, key functions

From: Date: Tue, 01 Nov 2016 05:53:38 +0000
Subject: Re: Allow Iterator to be used with current, next, reset, key functions
References: 1 2 3 4 5 6 7 8 9 10 11 12 13  Groups: php.internals 
Request: Send a blank email to internals+get-96690@lists.php.net to get a copy of this message
Hi David and all, On Tue, Nov 1, 2016 at 11:53 AM, David Lundgren <dlundgren@syberisle.net> 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

« previous php.internals (#96690) next »