Re:This is CoffeeScript
by mgutz on Tuesday August 23, 2011 @10:08AM
(#2916583)
Love CoffeeScript, but yeah omitting parens makes it hard to read in this case. I follow Visual Basic convention. Use parentheses when using the return value. In this case, the constructor function returns an object. Omit parentheses otherwise, i.e. using a function as a method (no return value).
[ Parent
| on HN ]
There are no comments on this comment yet.