Re: Re: RFC: CachedIterable (rewindable, allows any key&repeating keys)
| From: | Pierre | Date: | Thu, 10 Jun 2021 14:39:59 +0000 |
| Subject: | Re: Re: RFC: CachedIterable (rewindable, allows any key&repeating keys) | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-114814@lists.php.net to get a copy of this message | ||
Le 10/06/2021 à 16:16, tyson andre a écrit :
So I'm probably changing this to ImmutableTraversable as a short name for the functionality,
to make it clear arguments are eagerly evaluated when it is created.
(ImmutableSequence may be expected to only contain values, and would be confused with the ds PECL's https://www.php.net/manual/en/class.ds-sequence.php)
Hello,
And why not simply RewindableIterator ? Isn't it the prominent feature of it ?
Agreed it's immutable, but a lot of traversable could be as well.
Regards,
--
Pierre