Re:Why are programmers afraid of not using semicolons in Jav...
by JohnLBevan on Sunday August 07, 2011 @02:10PM
(#2857282)
You should always endeavour to make your code easy to read. Since most people aren't aware semi colons are optional, omitting them can cause unexpected behaviour in certain cases, and having them there does no harm, it's surely best to stick to the standards (i.e. using semi colons). The only time to debate whether to omit them is when there's a good reason to leave them out. Also, I suspect (untested theory) that it puts more strain on the parser, though makes negligible difference to the download speed, so will be a hit on performance.
[ Parent
| on HN ]
There are no comments on this comment yet.