Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And I'd write

    for i in [0...list.length] by 1
      sum += list[i].amount
to get equivalent compiled output.

I've used C and Java since high school, but I'm happy to be rid of that old `for` syntax. And I love that curly braces means only one thing in CoffeeScript: "I'm defining a new object with these key-value pairs."



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: