rfc:pow-operator

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:pow-operator [2013/12/21 05:45] datibbawrfc:pow-operator [2013/12/22 20:31] – Remove remaining reference to " * Turn ''pow()'' into a language construct," since it was removed from the proposal pollita
Line 1: Line 1:
  
 ====== PHP RFC: Power Operator ====== ====== PHP RFC: Power Operator ======
-  * Version: 0.2+  * Version: 0.3
   * Date: 2013-11-23   * Date: 2013-11-23
   * Author: Tjerk Meesters, datibbaw@php.net   * Author: Tjerk Meesters, datibbaw@php.net
-  * Status: Under Discussion+  * Status: Voting
   * First Published at: http://wiki.php.net/rfc/pow-operator   * First Published at: http://wiki.php.net/rfc/pow-operator
   * Revision (0.1 → 0.2): 2013-12-19   * Revision (0.1 → 0.2): 2013-12-19
 +  * Revision (0.2 → 0.3): 2013-12-21
  
 ===== Introduction ===== ===== Introduction =====
Line 68: Line 69:
 ===== Changelog ===== ===== Changelog =====
  
-21-Dec-2013: Reverted the change that turns pow() into a language construct due to BC breaks. +21-Dec-2013:  
-21-Dec-2013: Closed vote and moved RFC back to Discussion status+  * Removed turning pow() into a language construct from the proposal, due to BC breaks. 
 +  Closed vote and moved RFC back to Discussion status. 
 +  * Reverted commit [[https://github.com/datibbaw/php-src/commit/f60b98cf7a8371233d800a6faa286ddba4432d02|f60b98c]]. 
 + 
 +22-Dec-2013: 
 +  * Moved RFC back to Voting status
  
 ===== Discussion ===== ===== Discussion =====
Line 158: Line 164:
  
 External extensions such as [[http://pecl.php.net/package/vld|vld]] or [[https://github.com/krakjoe/phpdbg|phpdbg]] would have to be updated, but I'm not aware of any core extensions that would otherwise be affected. External extensions such as [[http://pecl.php.net/package/vld|vld]] or [[https://github.com/krakjoe/phpdbg|phpdbg]] would have to be updated, but I'm not aware of any core extensions that would otherwise be affected.
- 
-===== Open Issues ===== 
- 
-An issue was brought up that due to pow() itself becoming a language construct, it would break existing code that uses "public function pow()". 
  
 ===== Vote ===== ===== Vote =====
Line 167: Line 169:
 Voting will be based on the following: Voting will be based on the following:
  
-  * Turn ''pow()'' into a language construct, 
   * Add the power operators ''<nowiki>**</nowiki>'' and ''<nowiki>**</nowiki>='',   * Add the power operators ''<nowiki>**</nowiki>'' and ''<nowiki>**</nowiki>='',
   * Add ''ZEND_POW'' and ''ZEND_ASSIGN_POW'' opcodes.   * Add ''ZEND_POW'' and ''ZEND_ASSIGN_POW'' opcodes.
Line 179: Line 180:
 ---- ----
  
-<doodle title="Should PHP get a power operator in 5.6?" auth="datibbaw" voteType="single" closed="true">+<doodle title="Should PHP get a power operator in 5.6?" auth="datibbaw" voteType="single" closed="false">
    * Yes, right associative    * Yes, right associative
    * Yes, non associative    * Yes, non associative
rfc/pow-operator.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1