ASI isn't going anywhere, we are stuck with it. I don't care if people use semis or not, but rallying for one side or the other is silly. This subject has been discussed to death on the Node mailing list, in blogs, on IRC and twitter many times over. Unless there are new arguments on either side there's no real point discussing this.
People who don't really understand ASI need to stop spreading FUD on the issue. Make no mistake, claiming that always using semis is going to "save you from ASI" is pointless. It does nothing to educate people on the real pitfalls of ASI and essentially is nothing but FUD.
Examples where lacking semicolons can cause problems are well-known and used by those who disagree with you. You are beating on a straw man anyway, nobody claims that using semicolons is going to solve all the related problems - but it solves some.
Can you provide an example where using explicit semicolons causes problems but omitting them does not?
Examples where lacking semicolons can cause problems are well-known and used by those who disagree with you.
Besides lines beginning with ( and [ I bet you cannot name one. Because that's the only one.
I don't have to provide examples where using semis causes problems because I never made that claim. That would be a ridiculous claim.
edit: I can't believe I'm getting sucked back into this. Go ahead and spread your misinformation then, I can't reason someone out of an idea that they weren't reasoned into.
Fear mongering about ASI is bullshit. It's not a "weird personal obsession" about semicolons, it's a "weird personal obsession" with the truth. If you tried to tell me that dinosaurs lived on Earth 6000 years ago I'd react the same way.
I'd also like to point out that I've mentioned the single case where you need semicolons, and nobody has been able to identify any others (because there aren't any). I'm not the one hand-waving here.
1
u/drobilla Feb 06 '11
The problem/example you describe is a symptom of the flawed delimiters in Javascript, not an argument in support of it.