3 ms·
I guess he's referring to the implicit returns which are a pain in the neck to deal with.
by Cyph0n 12y ago
I guess he's referring to the implicit returns which are a pain in the neck to deal with.
- Cushman 12y agoThat'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.
- ryanthejuggler 12y agoImplicit 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.
- akst 12y agoIn LiveScript there's syntax to explicitly omit any return value, it's just a function with !-> instead of -> for the arrow.