There has been an interesting thread on Reddit with the title “DAE [Does Anyone Else] think CoffeeScript is ridiculously overrated?” [via @k33g_org]. This post provides some perspective on that opinion.
- Completely new syntax: CoffeeScript comes with its own syntax that looks a lot like Python: it uses indentation instead of braces, parentheses and commas are often optional, etc.
CoffeeScript is influential:
- Will be part of Rails. CoffeeScript will be shipped with Ruby on Rails 3.1.
list = [1, 2, 3, 4, 5]
squares = (Math.sqrt num for num in list)
var list = [1, 2, 3, 4, 5];
var squares = list.map((num) -> Math.sqrt(num));
- ECMAScript.next: the “TXJS” update by Eich