Re:CoffeeScript: The beautiful way to write JavaScript
by davepeck on Tuesday March 08, 2011 @05:05PM
(#2302773)
Interesting; I wasn't aware that CoffeeScript makes some semantic improvements too. Everything is an expression is truly value-add.
Re:CoffeeScript: The beautiful way to write JavaScript
by neimado on Tuesday March 08, 2011 @09:11PM
(#2303491)
No, you aren't trying to "improve JS semantics", you are trying to 'Rubyify' Javascript. You've created a language that is NOT javascript. Sorry, but no matter how hard you try to sell it as === javascript, it still will never be javascript. It's a Ruby syntax wrapped around javascript with some bells and whistles. It isn't a solution for javascript programmers, but it might be a solution for Ruby programmers.
That said, we certainly try to improve upon JS semantics, where it's possible to do so without a performance hit. Things like auto-lexical scoping, bound functions, chained comparisons and, most importantly, "everything is an expression", are all examples of this.