News for hackers. Stuff that matters.
Re:JavaScript Programming Patterns by chunkyslink on Tuesday October 06, 2009 @08:30AM (#863972)
>> I've stopped using semicolons round about 6 months ago and have never looked back. It makes my life simpler, I'm happier, and my sex life has never been better.

This sounds pretty dangerous to me. Crockford has this to say http://bit.ly/r9EZO about it.

Re:JavaScript Programming Patterns by extension on Tuesday October 06, 2009 @10:07AM (#864114)
That example isn't very reasonable. Obviously, one would expect semicolons to be inserted after lines that form complete statements. It's not hard to ensure that intermediate lines don't do that. It's done for other languages that don't use semicolons.
Re:JavaScript Programming Patterns by thegrossman on Tuesday October 06, 2009 @08:43AM (#864001)
My mom always told me that I had a limited supply of semicolons in my semicolon bucket, and to not waste them on languages where they aren't strictly required.

Now, maybe she was just joshing me... but I'm not taking that chance.

Re:JavaScript Programming Patterns by axod on Tuesday October 06, 2009 @09:06AM (#864022)
Leaving them out leads to horrible ambiguity and potential issues. Up to you though :)
Re:JavaScript Programming Patterns by thegrossman on Tuesday October 06, 2009 @09:27AM (#864049)
I haven't had a single issue in the 6 months of daily Javascriptin' since I've stopped using them.

As I mentioned in another thread, I don't minify my application code so maybe it's not as important as it is for other people.