Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Trailing commas reduce cognitive load. I don't need to consider whether an element I'm adding is the last item in a set; there isn't an edge case. Also, I can more quickly scan a DIFF and see the change in a file.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: