Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
GrumpyNl
on May 16, 2020
|
parent
|
context
|
favorite
| on:
PHP 8 in 8 code blocks
Whats the big advantage of Trailing commas are allowed in parameter lists? I never liked it, if its not there, dont do a kind of pseudo initialization.
owenmelbz
on May 17, 2020
|
next
[–]
Maybe not for single line calls, but for multi-line helps with some readability and git diffs.
$result = thing(
$arg1, $arg2, $arg3,
);
brendt_gd
on May 16, 2020
|
prev
[–]
It makes diffs easier to read, and ensures you never forget to add one of you'd add a new line to the parameter list.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: