News for hackers. Stuff that matters.
Re:Ruby Koans. Best way to learn Ruby. by jashkenas on Sunday August 22, 2010 @12:23PM (#1624811)
Agreed. It's why we've tried to be careful with lambda/hash/call syntax in CoffeeScript, especially where some of it is optional, and can be left out. For example:

    x = [1, 2].map (i) -> i * 2
... is without optional parens.

    x = [1, 2].map((i) -> i * 2)
... is with them.

    configure start: 10, end: 25
... is the syntax for calling a method and passing an implicit hash -- and with the optional braces and parens added, it's closer to JavaScript...

    configure({start: 10, end: 25})

There are no comments on this comment yet.