by blt · 12y ago · 0 comments
As I recall I think most of the brackety languages actually do ignore it now? So it's a good way to mitigate at least that small problem.
In fact, over on #hhvm I was told that Facebook's Hack style guide requires a trailing comma, which I think is a good thing and will catch a lot of silly errors.
Anyway, when I made my own Vim syntax highlighter for JSON, I spent a fair amount of effort in getting such a trailing comma highlighted as an error: https://github.com/elzr/vim-json