Re: Re: [RFC][Vote] iterable_to_array() and iterable_count()

From: Date: Thu, 05 Jul 2018 14:43:02 +0000
Subject: Re: Re: [RFC][Vote] iterable_to_array() and iterable_count()
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-102606@lists.php.net to get a copy of this message
Hey, Just to explain the No vote for iterable_count, I think we'd rather advocate people implement Countable in their iterables than to force the consumption of an iterator just to count it as this can have side-effects and render the iterator unusable. If Countable is implemented then count() will do the job and all is well. If consuming the iterator is desired then one still can do count(iterable_to_array($iter)) fairly easily. Best, Jordi On 04/07/2018 00:44, Michael Moravec wrote:
2018-07-04 0:23 GMT+02:00 Christoph M. Becker <cmbecker69@gmx.de>:
Yeah, I'd prefer that. It's not that 2018-07-17 12:00 UTC *couldn't* work – it's just I'd rather have some buffer time (I presume there will be more RFCs whose voting ends close to feature freeze).
Alright, updated! RFC voting now closes on 2018-07-16 23:00 UTC. M.
-- Jordi Boggiano @seldaek - https://seld.be

« previous php.internals (#102606) next »