Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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).


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: