5 ms·
What's harder, finding an extra trailing comma, or finding a missing semi-colon in a JavaScript file that contains no semi-colons?
by bentlegen 14y ago
What's harder, finding an extra trailing comma, or finding a missing semi-colon in a JavaScript file that contains no semi-colons?
- btilly 14y agoI was not comparing the possible pain of different bugs. I was merely stating that there is possible pain with commas.
- deleted 14y ago[deleted]
- ricardobeat 14y agoVisually? Finding the missing semi-colon. It should be missing from at most one line out of a hundred, and at the beginning of it, very easy to spot - it's a visible wart, as opposed to looking for a needle in a haystack.