3 ms·
The problem I have with trailing commas for the last entry is that it's missing one key bit of information: the last entry is supposed to be the last entry in t
by godshatter 1y ago
The problem I have with trailing commas for the last entry is that it's missing one key bit of information: the last entry is supposed to be the last entry in the list. Whenever I see a list where the last entry has a trailing comma I wonder if someone copy-pasted only part of the list or something. Having to add a comma when appending to the list doesn't seem that bad to me as a trade off.
- eviks 1y agoThe last entry already has an indicator - like a closing bracket. > Having to add a comma when appending to the list doesn't seem that bad to me as a trade off. Then do that! No one is forcing you to add trailing commas, they're optional and for all the other people who don't think they add value