Hacker News new | ask | show | jobs
by Cyph0n 4226 days ago
I guess he's referring to the implicit returns which are a pain in the neck to deal with.
3 comments

Implicit returns are the norm in ES6's arrow functions. I use CoffeeScript for most of my personal coding, and I can think of exactly one situation where an implicit return got me in trouble. Generally, if you don't care enough about what your function returns to check it, then it's likely the calling function doesn't either, assuming you're familiar with the particular API you're working with.
In LiveScript there's syntax to explicitly omit any return value, it's just a function with !-> instead of -> for the arrow.
That's a question of perspective, I think-- if we're calling this function from somewhere, and we care about what it does, we need those returns.