News for hackers. Stuff that matters.
Re:What is the advantage of currying? by crntaylor on Saturday February 02, 2013 @03:24PM (#5157196)
Your first point is fair. Of course, 'readability' is extremely subjective. It should always be judged in terms of the intended audience for the code - we'd have to ask a Haskell programmer to be sure.

Your second point I disagree with completely. Duff's device is non-idiomatic C that relies on oddities of C syntax (fall-through of cases in a switch statement, and the ability to jump into the middle of a loop). My code is reasonably idiomatic Haskell.

Re:What is the advantage of currying? by taeric on Saturday February 02, 2013 @03:41PM (#5157255)
Apologies, I should have made the second point more on the humor side than not.

I should also stress that I don't think this being somewhat difficult to read is really bad. Just saying that I would expect a lot of folks to balk at it.