On Tue, Feb 19, 2013 at 1:06 PM, Sara Golemon <poll...@php.net> wrote:
> Opening RFC to allow trailing comma in function call argument lists > > https://wiki.php.net/rfc/trailing-comma-function-args > Imho this change isn't necessary (though I'm also not strongly against). I don't really buy the VCS argument, as the usage of function argument lists and arrays are quite different. Functions have a fixed parameter specification, so you don't really "just add another argument" (exception: variadics). Arrays are quite different in that regard. Also in my personal experience people quite rarely use the one-argument-per-line notation for functions. If the line gets to long people split the arguments to an extra line, but usually it's not necessary to wrap things across so many lines that these concerns become relevant. (I mean, this is PHP and not the Win32API with 12-required-arguments functions...) I could see a minor benefit for code generation, though there too the difference isn't really large (especially if you can use implode). Nikita