Re: [RFC] Allow trailing comma in function call argument lists

From: Date: Tue, 19 Feb 2013 15:40:21 +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-65959@lists.php.net to get a copy of this message
On Feb 19, 2013, at 8:00 AM, Sara Golemon <pollita@php.net> wrote: > 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. I would vote +1 on this solely for the sake of consistency. I've never liked the idea behind the parser's actions on constructs (list, array). > > -Sara > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.internals (#65959) next »