Re: [RFC] Allow trailing comma in function call argument lists
| From: | Sara Golemon | Date: | Tue, 19 Feb 2013 13:00:42 +0000 |
| Subject: | Re: [RFC] Allow trailing comma in function call argument lists | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-65936@lists.php.net to get a copy of this message | ||
On Tue, Feb 19, 2013 at 4:41 AM, Kingsquare.nl - Robin Speekenbrink
<robin@kingsquare.nl> wrote:
> Just a question from one of the lingering listeners: would this change also
> ease the
skipping of default values for parameters? (as
> discussed for RFC
> https://wiki.php.net/rfc/skipparams)
>
> That way it would be consistent with this RFC and the list() construct ?
>
It's orthogonal to skipparams. It'd neither help nor hurt based on
the recommendations of that RFC.
With regard to list(), it already supports expressions like this:
list($x,) = array(123); so nothing more needs to be done for it and
it's not at odds with either of these RFCs.
-Sara