I'm not sure what you mean? Do you mean that in coffeescript the () after a function are optional? I find that it helps with readability with nested functions and callbacks, although it has bitten me before, but for me the readability outweighs the cons.
Also, javascript does have partial application with the bind method, or you can use function scoping to do it yourself:
var foo = function (x, y) {...}
var bar = function (y) {
return foo(5, y);
}
View all comments
Show parent comment
2
u/tmetler Jul 25 '13
I'm not sure what you mean? Do you mean that in coffeescript the
()after a function are optional? I find that it helps with readability with nested functions and callbacks, although it has bitten me before, but for me the readability outweighs the cons.Also, javascript does have partial application with the
bindmethod, or you can use function scoping to do it yourself: