r/javascript • • Feb 05 '11

Are Semicolons Necessary in JavaScript?

http://aresemicolonsnecessaryinjavascript.com/
0 Upvotes

66 comments sorted by

View all comments

Show parent comments

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.

1

u/sjs Feb 06 '11

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.

0

u/drobilla Feb 08 '11

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?

2

u/sjs Feb 08 '11 edited Feb 08 '11

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.

0

u/drobilla Feb 08 '11

In other words, no, you can not. QED.

2

u/sjs Feb 08 '11

Your lack of logical reasoning is remarkable. Yes, you win. Uncontested. Good job, 10 internets to you sir.

0

u/[deleted] Feb 10 '11

[deleted]

2

u/sjs Feb 10 '11

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.

Forget it, I can't believe I'm still biting.