r/javascript • • Feb 05 '11

Are Semicolons Necessary in JavaScript?

http://aresemicolonsnecessaryinjavascript.com/
0 Upvotes

66 comments sorted by

View all comments

18

u/drobilla Feb 06 '11

Nobody argues it isn't valid to omit semicolons. People recommend against it because it is a mind-blowingly braindead language "feature" that should not exist in the first place, and can cause confusing errors and other problems.

Fuzzy ambiguous syntax may have a place in content (e.g. markup), but it sure as hell has no place in programming language syntax. The tragedy of Javascript is that underneath the awful veneer is a pretty elegant language...

-5

u/neoform3 Feb 06 '11

The tragedy of Javascript is that underneath the awful veneer is a pretty elegant language

Where everything is globally scoped. Ugh.

1

u/drobilla Feb 08 '11

True, the scope thing is pretty... wow. I suppose it'd be more accurate to say underneath there is a language that is very close to being a pretty elegant language...