rfc:any_all_on_iterable_straw_poll_namespace

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
Next revisionBoth sides next revision
rfc:any_all_on_iterable_straw_poll_namespace [2021/01/17 14:34] tandrerfc:any_all_on_iterable_straw_poll_namespace [2021/01/26 21:45] – Fix typo theodorejb
Line 1: Line 1:
 ====== Straw poll: Using namespaces for *any() and *all() on iterables ====== ====== Straw poll: Using namespaces for *any() and *all() on iterables ======
-  * Version: 0.1+  * Version: 0.2
   * Date: 2021-01-05   * Date: 2021-01-05
   * Author: Tyson Andre, tandre@php.net   * Author: Tyson Andre, tandre@php.net
-  * Status: Under Discussion+  * Status: Voting
   * First Published at: http://wiki.php.net/rfc/any_all_on_iterable_straw_poll_namespace   * First Published at: http://wiki.php.net/rfc/any_all_on_iterable_straw_poll_namespace
  
Line 25: Line 25:
 ===== Discussion ===== ===== Discussion =====
  
-==== Arguments for namespaces in general ====+==== Arguments for voting again on namespaces ====
  
 https://externals.io/message/112558 https://externals.io/message/112558
Line 128: Line 128:
  
 Mark Randall Mark Randall
 +</blockquote>
 +
 +From Nikita Popov: https://externals.io/message/112558#112780
 +
 +<blockquote>
 +Using just the SPL namespace (that is, SPL\any) makes the SPL namespace a
 +dumping ground for everything, as you said. Once you introduce an
 +additional meaningful namespace in the form of SPL\iterable\any, you are
 +better off either dropping the SPL part and arriving at iterable\any, or
 +replacing SPL with something more sensible and arriving at PHP\iterable\any.
 </blockquote> </blockquote>
  
Line 180: Line 190:
  
 ===== Vote ===== ===== Vote =====
 +
 +Voting started on 2021-01-19 and ends on 2021-02-02
  
 This vote will influence the name choice for the RFC https://wiki.php.net/rfc/any_all_on_iterable This vote will influence the name choice for the RFC https://wiki.php.net/rfc/any_all_on_iterable
Line 191: Line 203:
   * no namespace: iterable_any()/iterable_all()   * no namespace: iterable_any()/iterable_all()
   * iter\ (conflicts with [[https://github.com/nikic/iter|nikic/iter]] but was among Nikita's suggestions)   * iter\ (conflicts with [[https://github.com/nikic/iter|nikic/iter]] but was among Nikita's suggestions)
-  * iterable\ (see [[any_all_on_iterable_straw_poll_namespace#arguments_foragainst_iterable_in_namespace|section on iterable\ ]] , also suggested by Nikita) +  * iterable\ (see [[#arguments_foragainst_iterable_in_namespace|section on iterable\ ]] , also suggested by Nikita) 
-  * PHP\ (This deliberately uses uppercase, see https://www.php.net/manual/en/language.namespaces.rationale.php+  * PHP\ (see [[#arguments_for_php|Arguments for PHP\]]) 
-  * PHP\iter\ +  * PHP\Spl\ (see [[#arguments_for_php|Arguments for PHP\]]
-  * PHP\iterable\ +  * PHP\iter\ (see [[#arguments_for_php|Arguments for PHP\]]) 
-  * Ext\Spl, as suggested in https://wiki.php.net/rfc/php_namespace_policy +  * PHP\iterable\ (see [[#arguments_for_php|Arguments for PHP\]]) 
-  * Spl\ (see [[any_all_on_iterable_straw_poll_namespace#arguments_for_spl|Arguments for Spl\ ]] - suggested by Levi Morrison)+  * Ext\Spl, as one interpretation of https://wiki.php.net/rfc/php_namespace_policy . Also see [[#arguments_for_php|Arguments for PHP\]] for PHP\Spl since this the new functions would be built in. 
 +  * Spl\ (see [[#arguments_for_spl|Arguments for Spl\ ]] - suggested by Levi Morrison)
   * Spl\iter\   * Spl\iter\
   * Spl\iterable\    * Spl\iterable\ 
Line 202: Line 215:
  
 First choice: First choice:
-<doodle title="Straw poll: Favorite choice of namespace" auth="tandre" voteType="single" closed="true">+<doodle title="Straw poll: Favorite choice of namespace" auth="tandre" voteType="single" closed="false">
    * iterable_any() and iterable_all()    * iterable_any() and iterable_all()
    * iter\    * iter\
    * iterable\    * iterable\
    * PHP\    * PHP\
 +   * PHP\Spl\
    * PHP\iter\    * PHP\iter\
    * PHP\iterable\    * PHP\iterable\
Line 217: Line 231:
 Second choice: Second choice:
  
-<doodle title="Straw poll: Second favorite choice of namespace" auth="tandre" voteType="single" closed="true">+<doodle title="Straw poll: Second favorite choice of namespace" auth="tandre" voteType="single" closed="false">
    * iterable_any() and iterable_all()    * iterable_any() and iterable_all()
    * iter\    * iter\
    * iterable\    * iterable\
    * PHP\    * PHP\
 +   * PHP\Spl\
    * PHP\iter\    * PHP\iter\
    * PHP\iterable\    * PHP\iterable\
Line 232: Line 247:
 Third choice: Third choice:
  
-<doodle title="Straw poll: Third favorite choice of namespace" auth="tandre" voteType="single" closed="true">+<doodle title="Straw poll: Third favorite choice of namespace" auth="tandre" voteType="single" closed="false">
    * iterable_any() and iterable_all()    * iterable_any() and iterable_all()
    * iter\    * iter\
    * iterable\    * iterable\
    * PHP\    * PHP\
 +   * PHP\Spl\
    * PHP\iter\    * PHP\iter\
    * PHP\iterable\    * PHP\iterable\
Line 247: Line 263:
 Fourth choice: Fourth choice:
  
-<doodle title="Straw poll: Fourth favorite choice of namespace" auth="tandre" voteType="single" closed="true">+<doodle title="Straw poll: Fourth favorite choice of namespace" auth="tandre" voteType="single" closed="false">
    * iterable_any() and iterable_all()    * iterable_any() and iterable_all()
    * iter\    * iter\
    * iterable\    * iterable\
    * PHP\    * PHP\
 +   * PHP\Spl\
    * PHP\iter\    * PHP\iter\
    * PHP\iterable\    * PHP\iterable\
Line 262: Line 279:
 Fifth choice: Fifth choice:
  
-<doodle title="Straw poll: Fifth favorite choice of namespace" auth="tandre" voteType="single" closed="true">+<doodle title="Straw poll: Fifth favorite choice of namespace" auth="tandre" voteType="single" closed="false">
    * iterable_any() and iterable_all()    * iterable_any() and iterable_all()
    * iter\    * iter\
    * iterable\    * iterable\
    * PHP\    * PHP\
 +   * PHP\Spl\
    * PHP\iter\    * PHP\iter\
    * PHP\iterable\    * PHP\iterable\
Line 277: Line 295:
 Sixth choice: Sixth choice:
  
-<doodle title="Straw poll: Sixth favorite choice of namespace" auth="tandre" voteType="single" closed="true">+<doodle title="Straw poll: Sixth favorite choice of namespace" auth="tandre" voteType="single" closed="false">
    * iterable_any() and iterable_all()    * iterable_any() and iterable_all()
    * iter\    * iter\
    * iterable\    * iterable\
    * PHP\    * PHP\
 +   * PHP\Spl\
    * PHP\iter\    * PHP\iter\
    * PHP\iterable\    * PHP\iterable\
Line 292: Line 311:
 Seventh choice: Seventh choice:
  
-<doodle title="Straw poll: Seventh favorite choice of namespace" auth="tandre" voteType="single" closed="true">+<doodle title="Straw poll: Seventh favorite choice of namespace" auth="tandre" voteType="single" closed="false">
    * iterable_any() and iterable_all()    * iterable_any() and iterable_all()
    * iter\    * iter\
    * iterable\    * iterable\
    * PHP\    * PHP\
 +   * PHP\Spl\
    * PHP\iter\    * PHP\iter\
    * PHP\iterable\    * PHP\iterable\
Line 305: Line 325:
 </doodle> </doodle>
  
-Eigth choice:+Eighth choice:
  
-<doodle title="Straw poll: Eighth favorite choice of namespace" auth="tandre" voteType="single" closed="true">+<doodle title="Straw poll: Eighth favorite choice of namespace" auth="tandre" voteType="single" closed="false">
    * iterable_any() and iterable_all()    * iterable_any() and iterable_all()
    * iter\    * iter\
    * iterable\    * iterable\
    * PHP\    * PHP\
 +   * PHP\Spl\
    * PHP\iter\    * PHP\iter\
    * PHP\iterable\    * PHP\iterable\
Line 322: Line 343:
 Ninth choice: Ninth choice:
  
-<doodle title="Straw poll: Ninth favorite choice of namespace" auth="tandre" voteType="single" closed="true">+<doodle title="Straw poll: Ninth favorite choice of namespace" auth="tandre" voteType="single" closed="false">
    * iterable_any() and iterable_all()    * iterable_any() and iterable_all()
    * iter\    * iter\
    * iterable\    * iterable\
    * PHP\    * PHP\
 +   * PHP\Spl\
    * PHP\iter\    * PHP\iter\
    * PHP\iterable\    * PHP\iterable\
Line 337: Line 359:
 Tenth choice: Tenth choice:
  
-<doodle title="Straw poll: Tenth favorite choice of namespace" auth="tandre" voteType="single" closed="true">+<doodle title="Straw poll: Tenth favorite choice of namespace" auth="tandre" voteType="single" closed="false">
    * iterable_any() and iterable_all()    * iterable_any() and iterable_all()
    * iter\    * iter\
    * iterable\    * iterable\
    * PHP\    * PHP\
 +   * PHP\Spl\
    * PHP\iter\    * PHP\iter\
    * PHP\iterable\    * PHP\iterable\
Line 349: Line 372:
    * Spl\iterable\    * Spl\iterable\
 </doodle> </doodle>
 +Eleventh choice:
  
 +<doodle title="Straw poll: Eleventh favorite choice of namespace" auth="tandre" voteType="single" closed="false">
 +   * iterable_any() and iterable_all()
 +   * iter\
 +   * iterable\
 +   * PHP\
 +   * PHP\Spl\
 +   * PHP\iter\
 +   * PHP\iterable\
 +   * Ext\Spl\
 +   * Spl\
 +   * Spl\iter\
 +   * Spl\iterable\
 +</doodle>
 ===== What the functions do ===== ===== What the functions do =====
  
Line 416: Line 453:
   - https://github.com/php/php-src/pull/6053   - https://github.com/php/php-src/pull/6053
  
 +===== Changelog =====
 +
 +0.2: Switch to a vote on multiple namespaces
rfc/any_all_on_iterable_straw_poll_namespace.txt · Last modified: 2021/02/03 00:30 by tandre