News for hackers. Stuff that matters.
Re:Destroy All Ifs – A Perspective from Functional Programming by AYBABTME on Saturday July 16, 2016 @06:48PM (#12108172)
The author seems to ignore the fact that passing lambdas like this merely changes where the IF or SWITCH statement is made. I can agree that passing functions instead of booleans is better and more general. But pretending that IF/SWITCH are thus avoided, is delusional.

For instance, at some point there will be a decision made whether the string matching must be case sensitive or not. If the program can do both at runtime, the IF will be, perhaps, in the main (or equiv.).

Re:Destroy All Ifs – A Perspective from Functional Programming by buffyoda on Saturday July 16, 2016 @07:12PM (#12108239)
Indeed, that's the whole point of inversion of control, is pulling the control out of the caller and into the callee. That's the primary reasoning benefit of functional programming.
Re:Destroy All Ifs – A Perspective from Functional Programming by TwoBit on Saturday July 16, 2016 @10:33PM (#12108795)
I see no benefit to that. It makes more work for the caller. I want that function to do something for me and I want the leadt amount of unnecessary work on my side. Just like a good boss who delegates.
Re:Destroy All Ifs – A Perspective from Functional Programming by buffyoda on Saturday July 16, 2016 @10:56PM (#12108842)
That's why not everyone's a functional programmer. :)