Re:Why are programmers afraid of not using semicolons in Jav...
by felipemnoa on Sunday August 07, 2011 @02:04PM
(#2857261)
Or, just add a semicolon and keep it simple. Why risk it? KISS at work.
[ Parent
| on HN ]
Re:Why are programmers afraid of not using semicolons in Jav...
by einaregilsson on Sunday August 07, 2011 @02:32PM
(#2857349)
There are two possibilities:
1. Prefix lines that start with punctuation, specifically [(-+/ with a ;. Then omit them everywhere else. Lines that start with punctuation are a tiny subset of all lines generally.
2. Postfix every line with a ;, "just in case"
I can't see how nr. 1 is harder. And in case 2 you don't actually put ; at the end of every line, you don't put them after {} blocks for example, so it's not like it's somehow easier to remember.
"Because we're used to doing it that way" is a reason I guess, but not a great one in my opinion.