rfc:any_all_on_iterable_straw_poll

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:any_all_on_iterable_straw_poll [2020/12/20 15:45] tandrerfc:any_all_on_iterable_straw_poll [2020/12/29 00:07] (current) tandre
Line 3: Line 3:
   * Date: 2020-12-19   * Date: 2020-12-19
   * Author: Tyson Andre, tandre@php.net   * Author: Tyson Andre, tandre@php.net
-  * Status: Voting+  * Status: Complete
   * First Published at: http://wiki.php.net/rfc/any_all_on_iterable_straw_poll   * First Published at: http://wiki.php.net/rfc/any_all_on_iterable_straw_poll
  
Line 50: Line 50:
 Voting starts on 2020-12-19 and will close on 2020-12-26. Voting starts on 2020-12-19 and will close on 2020-12-26.
  
-<doodle title="Straw poll: Preferred choice of naming pattern" auth="tandre" voteType="multi" closed="false">+<doodle title="Straw poll: Preferred choice of naming pattern" auth="tandre" voteType="multi" closed="true">
    * any() and all()    * any() and all()
    * iter_any() and iter_all()    * iter_any() and iter_all()
Line 96: Line 96:
   * I don't want to be in a situation where there are a large number of ''iterator_*()'' functions, where some accept ''Traversable'' and some accept ''iterable''.   * I don't want to be in a situation where there are a large number of ''iterator_*()'' functions, where some accept ''Traversable'' and some accept ''iterable''.
   * I also don't want to be in a situation where some have $iterator as a named argument (since PHP 8.0, e.g. ''iterator_to_array()'') and others have $iterable.   * I also don't want to be in a situation where some have $iterator as a named argument (since PHP 8.0, e.g. ''iterator_to_array()'') and others have $iterable.
-  * If I was choosing names from scratch, ''*foo(iterable $iterable, ...)'' would make more sense than ''iterator_foo(iterable $iterator)''+  * If I was choosing names from scratch, ''*foo(iterable $iterable, ...)'' would make more sense than ''iterator_foo(iterable $iterator, ...)''
  
 Changing other iterator functions such as ''iterator_apply()'', ''iterator_count()'', and ''iterator_to_array()'' to accept iterator instead of Traversable(Iterator and IteratorAggregate) is out of the scope of the RFC or straw poll. Changing other iterator functions such as ''iterator_apply()'', ''iterator_count()'', and ''iterator_to_array()'' to accept iterator instead of Traversable(Iterator and IteratorAggregate) is out of the scope of the RFC or straw poll.
rfc/any_all_on_iterable_straw_poll.1608479147.txt.gz · Last modified: 2020/12/20 15:45 by tandre