News for hackers. Stuff that matters.
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.
Re:How I write SQL by ajw0100 on Wednesday May 01, 2013 @01:48PM (#5639535)
Python is the same way - it lets you have trailing commas for lists, tuples, and dictionaries.
Re:How I write SQL by btilly on Wednesday May 01, 2013 @01:55PM (#5639601)
JavaScript is almost the same way. It works in some browsers, but not in others. :-(
Re:How I write SQL by Osiris on Wednesday May 01, 2013 @02:14PM (#5639742)
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.

Re:How I write SQL by genwin on Wednesday May 01, 2013 @02:32PM (#5639886)
So often I've wished SQL worked like that. Go requires a comma at the end of a sequence.