Over the last month or two, I've grown to admire CoffeeScript. This little language encourages developers to drop braces, sprinkling liberally around enabling syntactic sugar. But there is one area where I think a little more would help a lot.
alpha = bar.foo assigns the function
alpha = bar.foo() to assign the value instead.
Objects and classes in CoffeeScript feel more natural, yet
bar.foo still refers to the function
I suggest that, in CoffeeScript,
bar.foo should call
bar with no parameters (just like
bar.foo message passes
bar), and special syntax be introduced for function passing: