3 ms·
Same for kotlin, javascript, probably others. I'm always shocked at people's resistance when I suggest this. To some people, commas are the hill to die on, and
by willsmith72 3y ago
Same for kotlin, javascript, probably others.
I'm always shocked at people's resistance when I suggest this. To some people, commas are the hill to die on, and seemingly not for any reason except "that's how we've always done it".
- behnamoh 3y agoFor the same reason, I now prefer this foo { ... } to this foo { ... }
- jjgreen 3y agoI'd say the reason is that programming languages are based on natural languages, and in English, lists do not end with a comma.
- willsmith72 3y agoi hope we never see a programming language add an "and" between the last and 2nd last arg.
- jjgreen 3y agoThen we'd have the Oxford comma problem: [1, 2, 3 and 4] or [1, 2, 3, and 4]