rfc:list-syntax-trailing-commas

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
Last revisionBoth sides next revision
rfc:list-syntax-trailing-commas [2017/01/27 16:50] – make function call/decl example more realistic nikicrfc:list-syntax-trailing-commas [2017/05/01 10:22] nikic
Line 3: Line 3:
   * Date: 2015-11-03 (discussion); 2017-01-27 (voting)   * Date: 2015-11-03 (discussion); 2017-01-27 (voting)
   * Author: Sammy Kaye Powers, me@sammyk.me   * Author: Sammy Kaye Powers, me@sammyk.me
-  * Status: Voting+  * Status: Implemented in PHP 7.2 (Grouped namepaces only)
   * First Published at: https://wiki.php.net/rfc/revisit-trailing-comma-function-args, https://wiki.php.net/rfc/trailing-comma-function-args   * First Published at: https://wiki.php.net/rfc/revisit-trailing-comma-function-args, https://wiki.php.net/rfc/trailing-comma-function-args
  
Line 184: Line 184:
 </code> </code>
  
-<doodle title="Allow trailing commas in function/method arguments (declarations and calls)" auth="SammyK" voteType="single">+<doodle title="Allow trailing commas in function/method arguments (declarations and calls)" auth="SammyK" voteType="single" closed="true">
    * Yes    * Yes
    * No    * No
Line 200: Line 200:
 </code> </code>
  
-<doodle title="Allow trailing commas in grouped namepaces" auth="SammyK" voteType="single">+<doodle title="Allow trailing commas in grouped namepaces" auth="SammyK" voteType="single" closed="true">
    * Yes    * Yes
    * No    * No
Line 216: Line 216:
 </code> </code>
  
-<doodle title="Allow trailing commas in interface implementations on a class" auth="SammyK" voteType="single">+<doodle title="Allow trailing commas in interface implementations on a class" auth="SammyK" voteType="single" closed="true">
    * Yes    * Yes
    * No    * No
Line 224: Line 224:
  
 <code php> <code php>
-// Function/method arguments (call) 
-fooCall($arg1, $arg2, $arg3,); 
- 
 class Foo class Foo
 { {
Line 237: Line 234:
 </code> </code>
  
-<doodle title="Allow trailing commas in trait implementations on a class" auth="SammyK" voteType="single">+<doodle title="Allow trailing commas in trait implementations on a class" auth="SammyK" voteType="single" closed="true">
    * Yes    * Yes
    * No    * No
Line 264: Line 261:
 </code> </code>
  
-<doodle title="Allow trailing commas in class member lists" auth="SammyK" voteType="single">+<doodle title="Allow trailing commas in class member lists" auth="SammyK" voteType="single" closed="true">
    * Yes    * Yes
    * No    * No
Line 281: Line 278:
 </code> </code>
  
-<doodle title="Allow trailing commas in use lists for anonymous functions" auth="SammyK" voteType="single">+<doodle title="Allow trailing commas in use lists for anonymous functions" auth="SammyK" voteType="single" closed="true">
    * Yes    * Yes
    * No    * No
rfc/list-syntax-trailing-commas.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1