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 revision | ||
rfc:any_all_on_iterable_straw_poll [2020/12/19 20:12] – tandre | rfc:any_all_on_iterable_straw_poll [2020/12/29 00:07] (current) – 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 | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
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=" | + | <doodle title=" |
* any() and all() | * any() and all() | ||
* 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 89: | 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 96: | Line 109: | ||
- https:// | - https:// | ||
+ | ===== Changelog ===== | ||
+ | |||
+ | 0.2: Document why '' |
rfc/any_all_on_iterable_straw_poll.1608408741.txt.gz · Last modified: 2020/12/19 20:12 by tandre