Re: Allow Iterator to be used with current, next, reset, key functions
| From: | Levi Morrison | Date: | Thu, 03 Nov 2016 19:58:09 +0000 |
| Subject: | Re: Allow Iterator to be used with current, next, reset, key functions | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-96727@lists.php.net to get a copy of this message | ||
> I think it would be bad to remove these functions and force users to
> wrap arrays with ArrayIterator, just to manually iterate an array. After
> spending a little time looking through how these functions are being
> used in frameworks and libraries, removing them seems like it will cause
> more harm than good, even in a future version of the language.
Can you show some examples of frameworks and libraries you found where
it would cause more harm than good?