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

From: Date: Mon, 09 Jul 2018 20:13:31 +0000
Subject: Re: [RFC][Vote] iterable_to_array() and iterable_count()
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-102678@lists.php.net to get a copy of this message
On Tue, Jul 3, 2018 at 9:48 PM Michael Moravec <php.net@majkl578.cz> wrote: > Hello internals, > > The RFC for adding iterable_to_array() and iterable_count() is now open for > voting: > > https://wiki.php.net/rfc/iterable_to_array-and-iterable_count > > You can vote for each function separately. > > Voting will close on 2018-07-17 12:00 UTC. > > > Thank you, > M. > Hi, I'd like to point out that a cast to array could almost replace the first one-liner example in the RFC, with the exception of the generator case. It may be an issue that (array)$iterator has a different behavior than iterator_to_array($iterable) but that would be a separate discussion. Regards, Pedro

« previous php.internals (#102678) next »