4 ms·
I've gotten bit by trailing commas enough times (both manual edits and writing generators) that I absolutely expect any reasonable syntax to tolerate them. It's
by kortex 3y ago
I've gotten bit by trailing commas enough times (both manual edits and writing generators) that I absolutely expect any reasonable syntax to tolerate them. It's just so much easier and more consistent to tolerate them.
- jen20 3y agoAs importantly, it reduces the noise in diffs when an item is added to a sequence.
- masklinn 3y agoYou can use prefix separators for that. Haskell-style.
- panick21_ 3y agoThat's what Clojure got right. Comma is whitespace. When you print a datastructure, it has commas. But they don't effect reading of that structure. Its brilliant and practical.
- themerone 3y agoThis is why I switched to leading commas.