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

Why not just allow trailing commas?


Well, totally. Lua and C don't care. A minor change, breaking the strict-subset-of-javascript which is no longer important.


Well, not really. ES5 allows trailing commas in object literals too.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: