3 ms·
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.
by MartinCron 14y ago
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.
- ajw0100 14y agoPython is the same way - it lets you have trailing commas for lists, tuples, and dictionaries.
- btilly 14y agoJavaScript is almost the same way. It works in some browsers, but not in others. :-(
- Osiris 13y agoThis 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.
- genwin 13y agoSo often I've wished SQL worked like that. Go requires a comma at the end of a sequence.