3 ms·
I don't actually know the history of JavaScript style, but I feel like this assertion is likely trivializing something more complex: >The reason you were once
by jchendy 11y ago
I don't actually know the history of JavaScript style, but I feel like this assertion is likely trivializing something more complex:
>The reason you were once told trailing commas are bad is because they are invalid in EcmaScript 3.
I can imagine plenty of reasons people would have for avoiding trailing commas even after they became valid syntax.
The whole "consistency" section also feels like unnecessary snark.
- albedoa 11y ago> I can imagine plenty of reasons people would have for avoiding trailing commas even after they became valid syntax. Could you list a few?