Re:How I write SQL
by MartinCron on Wednesday May 01, 2013 @01:45PM
(#5639507)
This reminds me about something that I like in C#, you can leave an extra comma at the end of a sequence and the compiler doesn't freak out on you.
[ Parent
| on HN ]
Python is the same way - it lets you have trailing commas for lists, tuples, and dictionaries.
JavaScript is almost the same way. It works in some browsers, but not in others. :-(
This exact issue caused us to deploy code that completely broke our application in IE7. There was a trailing comma in a list which all browsers ignore except IE6/7.
To this day we still give that dev (the team lead) a hard time about the trailing comma. We since implemented mandatory linting on all JS.