Re:[VOTE] Allow a trailing comma in function calls
| From: | CHU Zhaowei | Date: | Sun, 22 Oct 2017 05:24:05 +0000 |
| Subject: | Re:[VOTE] Allow a trailing comma in function calls | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-100912@lists.php.net to get a copy of this message | ||
Hello Sammy,
I'd like to know if a trailing comma would affect the number of args or not. for example,
```
function foo(){
return func_num_args();
}
foo('a','b',);
```
would return 2 or 3?
best regards,
CHU Zhaowei
------------------ Original ------------------
From: "Sammy Kaye Powers"<me@sammyk.me>;
Date: Sun, Oct 22, 2017 02:36 AM
To: "PHP Internals"<internals@lists.php.net>;
Subject: [PHP-DEV] [VOTE] Allow a trailing comma in function calls
Hi internalsland!
Seeing that the mandatory two-week discussion period has completed and
there are no open questions, the RFC to allow a trailing comma in
function calls in PHP 7.3 is up for vote.
https://wiki.php.net/rfc/trailing-comma-function-calls
As this is a change to the language syntax, the RFC requires a 2/3
majority to pass. The voting period will last two weeks beginning now
(2017-10-21 18:30 UTC) and ending 2017-11-04 18:30 UTC.
Happy Halloween! :)
Thanks,
Sammy Kaye Powers
sammyk.me
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php