Eich originally wanted to make a Scheme. Given that, JS syntax is a hell of a lot like Java. It has almost the exact same expression syntax, same operators, same precedence. Same statement/expression distinction, semicolons as terminators, same control flow structures.
If you keep using Scheme for web scripting, we'll fucking kill you.
Netscape has initially had a scheme dialect for scripting, but had to change to to something more "java like" after Sun applied significant pressure on them to jump on their newly started Java bandwagon. The pressure was so large, that they made Netscape not only change the syntax, but to even brainlessly squeeze the name Java into it.
The early JavaScript versons were BTW written in Common Lisp and are still available from Mozillas repositories.
Google's Closure Compiler makes it possible to write large-scale applications in Javascript, if you don't mind annotating everything with JSDoc comments. It doesn't just verify and minify your code, it actually compiles it into more efficient Javascript.
I think the popularity of dart will be surprising to you. Already dart vm is 2x faster than v8 (impressive for such a young language) and my bet is that once their crosscompiled javascript gets fast enough, it will become quite a popular language.
26
u/SirClueless Dec 23 '12
Another interesting family of languages:
JavaScript: Netscape is boring.
CoffeeScript: JavaScript is a kludge.
Dart: JavaScript is a kludge, and it's slow.
And a recent trend in programming languages:
Go: C++ is a kludge, and it takes forever to compile.
Rust: C++ is a kludge, and it's not safe to use.