Re: [RFC] Allow trailing comma in function call argument lists
| From: | Kingsquare.nl - Robin Speekenbrink | Date: | Tue, 19 Feb 2013 13:43:50 +0000 |
| Subject: | Re: [RFC] Allow trailing comma in function call argument lists | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-65948@lists.php.net to get a copy of this message | ||
Sara,
I wasnt commenting that this RFC was different, just in agreement that this
syntax is _more_ in line with the list() construct (which then might
reflect the skipparams rfc))
If i wasnt clear: from a user point of view: i am all for this RFC ;)
Met vriendelijke groet,
Robin Speekenbrink
Kingsquare BV
2013/2/19 Sara Golemon <pollita@php.net>
> 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
>