3 ms·
I used to hate when I saw JS with semicolons too. "Get off my lawn" with that naked code! Not sure when or how it changed, but I'm on the other side of the fen
by pcmaffey 8y ago
I used to hate when I saw JS with semicolons too. "Get off my lawn" with that naked code!
Not sure when or how it changed, but I'm on the other side of the fence now. Without semicolons (unless multi-statements on a single line), JS is so much cleaner. A line break is perfectly sufficient to signal the end of a statement.
- logfromblammo 8y agoThat is a perfectly reasonable opinion. However, as a grammar-nazi, I feel that proper punctuation is important. While certain poetic forms may take liberties with punctuation for the sake of the artistic expression, sentences end with a full stop--separated by a subsequent sentence in the same paragraph by two spaces--and lines of code end in an unambiguous visible token. Newline/return characters are whitespace tokens. Differentiating them from other whitespace tokens is the first step on the path to madness. What's next? Treating tabs differently from spaces? ~ (ha ha only serious)
- code_duck 8y agoI feel very serious about this
- code_duck 8y agoThankfully, 8 million other people have already written discussion on that topic to the extent that we certainly don’t need to try debating it here.