Re:Semicolons in JavaScript are optional
by axod on Friday June 25, 2010 @04:46AM
(#1460325)
And that's one of the reasons (IMHO) that bracketing style sucks.
I was really explaining why rookies will make mistakes with js. The simplest way to prevent those types of errors is to always use ; and to use { on the same line style.
Re:Semicolons in JavaScript are optional
by kls on Friday June 25, 2010 @08:27AM
(#1460547)
I understand the curly on the same line thing can bite you in Javascript, but man I find it so much easier to read when I can match them up by line of sight on a new line, that is one of my big pet peeves.
I was really explaining why rookies will make mistakes with js. The simplest way to prevent those types of errors is to always use ; and to use { on the same line style.