rfc:null_coalesce_equal_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:null_coalesce_equal_operator [2016/03/24 15:59] – author midorikocakrfc:null_coalesce_equal_operator [2019/01/22 10:36] (current) – Implemented nikic
Line 1: Line 1:
-====== PHP RFC: Null Coalesce Equal Operator ======+====== PHP RFC: Null Coalescing Assignment Operator ======
   * Version: 0.1.0   * Version: 0.1.0
   * Date: 2016-03-09   * Date: 2016-03-09
   * Author: Midori Kocak, mtkocak@gmail.com   * Author: Midori Kocak, mtkocak@gmail.com
-  * Status: Voting+  * Status: Implemented (in PHP 7.4)
   * First Published at: http://wiki.php.net/rfc/null_coalesce_equal_operator   * First Published at: http://wiki.php.net/rfc/null_coalesce_equal_operator
  
Line 13: Line 13:
 ===== Proposal ===== ===== Proposal =====
  
-Despite ''??'' coalesce operator being a comparison operator, coalesce equal or ''??=''operator is an assignment operator. If the left parameter is null, assigns the value of the right paramater to the left one. If the value is not null, nothing is made.+Despite ''??'' coalescing operator being a comparison operator, coalesce equal or ''??=''operator is an assignment operator. If the left parameter is null, assigns the value of the right paramater to the left one. If the value is not null, nothing is made.
  
 <code php> <code php>
Line 36: Line 36:
 As this is a language change, a 2/3 majority is required. A straight Yes/No vote is being held. As this is a language change, a 2/3 majority is required. A straight Yes/No vote is being held.
  
-<doodle title="Approve Equal Null Coalesce Operator RFC and merge patch into master?" auth="midorkocak" voteType="single" closed="false">+Voting started at 2016/03/24 16:08 and will be closed at 2016/04/02. 
 + 
 +<doodle title="Approve Equal Null Coalesce Operator RFC and merge patch into master?" auth="midorkocak" voteType="single" closed="true">
    * Yes    * Yes
    * No    * No
rfc/null_coalesce_equal_operator.1458835142.txt.gz · Last modified: 2017/09/22 13:28 (external edit)