rfc:any_all_on_iterable_straw_poll
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:any_all_on_iterable_straw_poll [2020/12/19 20:11] – tandre | rfc:any_all_on_iterable_straw_poll [2020/12/20 15:45] – tandre | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Straw poll: Naming for any() and all() on iterables ====== | + | ====== Straw poll: Naming for *any() and *all() on iterables ====== |
- | * Version: 0.1 | + | * Version: 0.2 |
* Date: 2020-12-19 | * Date: 2020-12-19 | ||
* Author: Tyson Andre, tandre@php.net | * Author: Tyson Andre, tandre@php.net | ||
Line 47: | Line 47: | ||
This vote will influence the name choice for the RFC https:// | This vote will influence the name choice for the RFC https:// | ||
+ | |||
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. | ||
Line 53: | Line 54: | ||
* iter_any() and iter_all() | * iter_any() and iter_all() | ||
* iterable_any() and iterable_all() | * iterable_any() and iterable_all() | ||
+ | * Opposed to names | ||
* Opposed to adding this functionality | * Opposed to adding this functionality | ||
</ | </ | ||
Line 88: | Line 90: | ||
Using static methods instead of global functions was not considered since it would be impractical to polyfill new functions that get added in future php versions in a standard way. (e.g. '' | Using static methods instead of global functions was not considered since it would be impractical to polyfill new functions that get added in future php versions in a standard way. (e.g. '' | ||
- | Changing other iterable | + | ==== Existing iterator methods ==== |
+ | |||
+ | The prefix '' | ||
+ | |||
+ | * I don't want to be in a situation where there are a large number of '' | ||
+ | * I also don't want to be in a situation where some have $iterator as a named argument (since PHP 8.0, e.g. '' | ||
+ | * If I was choosing names from scratch, '' | ||
+ | |||
+ | Changing other iterator | ||
+ | |||
+ | |||
+ | * My preference would be to add new '' | ||
+ | * Any alternative RFCs to change the behaviors of '' | ||
===== References ===== | ===== References ===== | ||
Line 95: | Line 109: | ||
- https:// | - https:// | ||
+ | ===== Changelog ===== | ||
+ | |||
+ | 0.2: Document why '' |
rfc/any_all_on_iterable_straw_poll.txt · Last modified: 2020/12/29 00:07 by tandre