Proposal: Dangling comma in function call parameters

From: Date: Wed, 22 Oct 2003 21:32:04 +0000
Subject: Proposal: Dangling comma in function call parameters
Groups: php.internals 
Request: Send a blank email to internals+get-4918@lists.php.net to get a copy of this message
Hello everybody, just joined the internals list (after being absent from php developers lists for a while) so excuse my ignorance if any topic I bring up has been discussed already. I checked the archives but couldn't find anything... Proposal: Allow dangling commas in function call parameters. Reasoning: We use some handy vararg tool functions and it's nice to be able to write foo( 1, 2, 3, ); since it's then easy to add a new parameter without having to add a comma to the previous list. This would be symmetrical to the array() syntax. The patch for zend (php4 from cvs) would be minimal and I can't see any backwards-compatibility issues right now (patch attached). Any opinions? Regards, - Chris

« previous php.internals (#4918) next »