3 ms·
I do that because I write a lot of JavaScript and semicolon insertion will mess you up if you don't make a habit of putting the opening brace on the end of the
by benreesman 18y ago
I do that because I write a lot of JavaScript and semicolon insertion will mess you up if you don't make a habit of putting the opening brace on the end of the line. I suppose I could have two different styles but that sounds like an even worse option.
- fortes 18y agoExactly -- for JS sytle see Crockford, who explains these in detail: http://javascript.crockford.com/code.html http://javascript.crockford.com/code.html
- DanielBMarkham 18y agoI've wrote a lot of Javascript, and have yet to get bitten by semicolon insertion. It's been a year or so since I really hacked JS, so I loaded up about 200K of code I've written and it's all braces-stand-alone.