Just my own opinion, but I support this idea. For most functions it may be out of place, but when dealing with variadic functions it can add consistency to code. In addition it can make for cleaner diffs when overriding or switching back to default arguments. It is nice to not need to adjust other lines of code when removing one. Those are pretty minor gains, but I think they outweigh the minor code cruft that this could introduce.
I appreciate that php allows trailing commas in arrays and I don't think there's a compelling reason to avoid making functions consistent with that behavior. -alex On Wed, Oct 14, 2015 at 11:59 PM, Björn Larsson <bjorn.x.lars...@telia.com> wrote: > Den 2015-10-14 kl. 21:25, skrev Sammy Kaye Powers: > >> Hello internals friends! >> >> I'd like to open a discussion on the RFC to allow trailing commas in >> function arguments. >> >> https://wiki.php.net/rfc/revisit-trailing-comma-function-args >> >> Discuss! :) >> >> Thanks, >> Sammy Kaye Powers >> sammyk.me >> >> Given the reason against this RFC in the thread it would be interesting > to know why HHVM decided to implement it? > > Regards //Björn > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >