Hacker News new | ask | show | jobs
by account_taken 4849 days ago
CoffeeScript is more readable if you follow Visual Basic paren rules. Visual Basic, at least the one I used way back when, differentiates between functions and subroutines. Functions whose return values are used in an expression must use parentheses. Subroutines and functions used as subroutines omit parentheses.

Example, I often see this. In this trivial example the intent is simple. In real code this style is unnecessary cleverness.

    a b c, d e
In VB, since the return value of `b` and `d` are used, parentheses must be added

    a b(c, d(e))