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
rfc:pow-operator [2013/12/22 20:31] – Remove remaining reference to " * Turn ''pow()'' into a language construct," since it was removed from the proposal pollitarfc:pow-operator [2014/08/11 18:24] nikic
Line 4: Line 4:
   * Date: 2013-11-23   * Date: 2013-11-23
   * Author: Tjerk Meesters, datibbaw@php.net   * Author: Tjerk Meesters, datibbaw@php.net
-  * Status: Voting+  * Status: Implemented in PHP 5.6
   * 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
Line 79: Line 79:
 ===== Discussion ===== ===== Discussion =====
  
-> Should ''-<nowiki>**</nowiki> 3'' evaluate to ''9'' instead of ''-9''?+> Should ''-<nowiki>**</nowiki> 2'' evaluate to ''9'' instead of ''-9''?
  
 According to the following resources, the scale tips more towards having the exponent precede the unary minus: According to the following resources, the scale tips more towards having the exponent precede the unary minus:
Line 180: Line 180:
 ---- ----
  
-<doodle title="Should PHP get a power operator in 5.6?" auth="datibbaw" voteType="single" closed="false">+<doodle title="Should PHP get a power operator in 5.6?" auth="datibbaw" voteType="single" closed="true">
    * Yes, right associative    * Yes, right associative
    * Yes, non associative    * Yes, non associative
Line 189: Line 189:
  
 Voting ends on 5th of January 2014. Voting ends on 5th of January 2014.
 +
  
  
Line 195: Line 196:
 Power operator PR: https://github.com/php/php-src/pull/543 Power operator PR: https://github.com/php/php-src/pull/543
  
 +PHP 5.6 Commits: [[http://git.php.net/?p=php-src.git;a=commit;h=aff56f3c4539869910cf2778cf0ece2d8c2dd671|1]] [[http://git.php.net/?p=php-src.git;a=commit;h=363ff60475d93716722034b8f7a2486229bf4cfb|2]]
rfc/pow-operator.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1