News for hackers. Stuff that matters.
Re:When Does Point-Free Notation Make Code More Readable? by lmm on Friday September 29, 2017 @11:31AM (#15366149)
I mean, => is standard in the language and partial isn't, but that's an accident of history. Your example looks reasonably nice, but the "x" isn't really adding anything; if we could somehow write it as

    y = => {Math.max , 2}
that would be clearer still (setting aside familiarity with the language). Whether "=>" or "partial" is a better name is a separate question.

There are no comments on this comment yet.