rfc:iterable_to_array-and-iterable_count

Differences

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

Link to this comparison view

Next revision
Previous revision
rfc:iterable_to_array-and-iterable_count [2018/06/19 17:49] – created majklrfc:iterable_to_array-and-iterable_count [2018/07/17 12:34] (current) – close as declined majkl
Line 3: Line 3:
   * Date: 2018-06-19   * Date: 2018-06-19
   * Author: Michael Moravec (php.net@majkl578.cz)   * Author: Michael Moravec (php.net@majkl578.cz)
-  * Status: Draft+  * Status: Declined
   * First Published at: https://wiki.php.net/rfc/iterable_to_array-and-iterable_count   * First Published at: https://wiki.php.net/rfc/iterable_to_array-and-iterable_count
  
Line 39: Line 39:
   * when an iterator is given:   * when an iterator is given:
     * when //$use_keys = true//: iterator is converted to an array, preserving the keys (same behavior as iterator_to_array())     * when //$use_keys = true//: iterator is converted to an array, preserving the keys (same behavior as iterator_to_array())
-    * when //$use_keys = false//: iterator is converted to an array as a list, ignoring the keys+    * when //$use_keys = false//: iterator is converted to an array as a list, ignoring the keys (same behavior as iterator_to_array())
  
 In order to stay consistent with iterator_to_array(), the //$use_keys// behavior is retained. In order to stay consistent with iterator_to_array(), the //$use_keys// behavior is retained.
Line 86: Line 86:
 In case these functions gain a popularity, they could be optimized directly by VM, similar to ZEND_COUNT.  In case these functions gain a popularity, they could be optimized directly by VM, similar to ZEND_COUNT. 
  
-===== Proposed Voting Choices =====+===== Vote =====
  
-Not a language change so simple yes/no vote with 50%+1 majority is required.+This is not a language change so simple yes/no vote with 50%+1 majority is required. 
 + 
 +Voting starts on 2018-07-03 20:30 UTC and closes on 2018-07-16 23:00 UTC. 
 + 
 +<doodle title="Add iterable_to_array()?" auth="majkl" voteType="single" closed="true"> 
 +   * Yes 
 +   * No 
 +</doodle> 
 +
 +<doodle title="Add iterable_count()?" auth="majkl" voteType="single" closed="true"> 
 +   * Yes 
 +   * No 
 +</doodle>
  
 ===== Patches and Tests ===== ===== Patches and Tests =====
  
 GitHub PR: https://github.com/php/php-src/pull/3293 GitHub PR: https://github.com/php/php-src/pull/3293
rfc/iterable_to_array-and-iterable_count.1529430547.txt.gz · Last modified: 2018/06/19 17:49 by majkl