2 ms·
"With ES4 (due out later this year I think) the language should really come into its own." In general, I kinda feel like ES4 is a step in the wrong direction.
by SwellJoe 19y ago
"With ES4 (due out later this year I think) the language should really come into its own."
In general, I kinda feel like ES4 is a step in the wrong direction. It takes a very concise, but powerful, language, and makes it far more complex without really adding any additional functionality.
But I agree with you about where and why JavaScript is weak. The browser is a pretty horrible environment from a language power standpoint (it's a sandbox that historically had zero access to the world except through the DOM, which is pretty awful). If JavaScript was commonly used on the desktop in standalone form, like Perl/Python/Ruby/Lua, it would hold up just fine to comparison. Prototypal inheritance is cool. It's got closures. Syntax is mostly very simple and clean (and the only real terrors are the Java-isms that a few idiots rudely shoved into the language). It has first class functions. I can't think of anything that I really feel is lacking in the language--it's occasionally more verbose than I'd like, due mainly to the DOM and the way the DOM is used, but the good libraries out there (jQuery, ExtJS, Dojo, etc.) are pretty much all the evidence I need that the language is really extensible and really powerful, and they make almost all of the uncomfortable verbosity disappear.