News for hackers. Stuff that matters.
Re:Spider Programming Language by Cyph0n on Monday November 17, 2014 @01:48PM (#8619716)
I guess he's referring to the implicit returns which are a pain in the neck to deal with.
Re:Spider Programming Language by ryanthejuggler on Monday November 17, 2014 @03:39PM (#8620383)
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.
Re:Spider Programming Language by akst on Monday November 17, 2014 @08:20PM (#8621907)
In LiveScript there's syntax to explicitly omit any return value, it's just a function with !-> instead of -> for the arrow.
Re:Spider Programming Language by Cushman on Monday November 17, 2014 @02:04PM (#8619811)
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.