rfc:trailing-comma-function-calls

Differences

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

Link to this comparison view

Next revision
Previous revision
rfc:trailing-comma-function-calls [2017/10/07 18:22]
sammyk created
rfc:trailing-comma-function-calls [2017/11/06 14:54] (current)
nikic
Line 1: Line 1:
-====== PHP RFC: Allow trailing comma in function calls ======+====== PHP RFC: Allow trailing comma in function calls ======
   * Version: 0.1   * Version: 0.1
-  * Date: 2017-10-06+  * Date: 2017-10-07
   * Author: Sammy Kaye Powers, me@sammyk.me   * Author: Sammy Kaye Powers, me@sammyk.me
-  * Status: Under Discussion+  * Status: Implemented (in PHP 7.3)
   * First Published at: https://wiki.php.net/rfc/list-syntax-trailing-commas (2017-01-27) & https://wiki.php.net/rfc/trailing-comma-function-args (2013-02-19)   * First Published at: https://wiki.php.net/rfc/list-syntax-trailing-commas (2017-01-27) & https://wiki.php.net/rfc/trailing-comma-function-args (2013-02-19)
  
Line 50: Line 50:
  
 ==== Sending variables to a template engine ==== ==== Sending variables to a template engine ====
-Another extremely common practice is to send a list of variables to a tempalte engine concisely using <php>compact()</php>.+Another extremely common practice is to send a list of variables to a template engine concisely using <php>compact()</php>.
  
 <code php> <code php>
Line 198: Line 198:
  
 ===== Proposed Voting Choices ===== ===== Proposed Voting Choices =====
-Requires a 2/3 or 50%+1 majority+Requires a 2/3 majority to pass. Voting begins **2017-10-21 18:30 UTC** and ends **2017-11-04 18:30 UTC**. 
 + 
 +<doodle title="Allow a trailing comma in function calls" auth="sammyk" voteType="single" closed="true"> 
 +   * Yes 
 +   * No 
 +</doodle>
  
 ===== Patches and Tests ===== ===== Patches and Tests =====
Line 208: Line 213:
  
 ===== Implementation ===== ===== Implementation =====
-After the project is implemented, this section should contain  + 
-  the version(s) it was merged to +Implemented in PHP 7.3 via https://github.com/php/php-src/commit/b591c329ee3129adbdc35141bb1542d119f7a2a1.
-  - a link to the git commit(s) +
-  - a link to the PHP manual entry for the feature +
-  - a link to the language specification section (if any)+
      
rfc/trailing-comma-function-calls.1507400534.txt.gz · Last modified: 2017/10/07 18:22 by sammyk