> Also, it is much easier to look at this [...] and see if all the commas are actually present.
ESLint can trivially lint that you haven't missed a comma (including the final trailing comma). The style guide/ESLint config I use (Airbnb's) enforces trailing commas. If ESLint can do it, Elm should be able to.
[0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Well, Elm is not trying to be JS, it's trying to be better, and there's really no reason to need trailing commas. I'd even argue that it argue it leaves a message of mixed intent "did the author want to continue the list?" and needlessly enables duplicate styles for the same one thing.
Which languages are you referring to? Almost every language I'm aware of allows trailing commas.
C, C++, Java, Python, C#, Javascript (somewhat), Ruby, Objective-C, Perl, PHP, Elixir, Rust, and Go all allow trailing commas.
Except you've now traded the last line being special for the first line being special.
Also, it is much easier to look at this
And see if all of the commas are actually present ;)