Re: [PHP-DEV] Re: [RFC][Vote] iterable_to_array() and iterable_count()

2018-07-05 Thread Michael Moravec
2018-07-05 16:43 GMT+02:00 Jordi Boggiano : > 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 unusabl

Re: [PHP-DEV] Re: [RFC][Vote] iterable_to_array() and iterable_count()

2018-07-05 Thread Jordi Boggiano
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(