Re: rfc:trailing-comma-function-args
| From: | Florian Anderiasch | Date: | Sat, 23 Feb 2013 09:03:37 +0000 |
| Subject: | Re: rfc:trailing-comma-function-args | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-66169@lists.php.net to get a copy of this message | ||
On 22.02.2013 22:46, Sebastian Krebs wrote:
> /sign
> Especially about the "implies, that another optional argument may exist":
> One does not simply add arbitrary arguments to a function call. Except when
> the function signature changes, but in this case (to repeat myself) the
> additional diff-line is negligible.
I've thought about this, and the only function I'm using often enough to
have this change be needed/nice/finally there is sprintf - it's the only
function with variable number of arguments that's bitten me with the
trailing comma at least once a month - but not a single other function I
can think ok. (Maybe I should use more var_dump though...)
Greetings,
Florian