News for hackers. Stuff that matters.
Re:Why does Haskell, in your opinion, suck? by true_religion on Sunday April 17, 2016 @11:02AM (#11514725)
Binary search is looking for a value. Wolf-fencing is looking for a side-effect of that value.

As per analogy, you're not checking an animal in Alaska to see if it is a wolf, you are waiting till the wolf howls (side effect of wolf-existence) then focusing your efforts in that area.

So you can't really use wolf-fencing to say... find a number in an array; it makes no sense.

Re:Why does Haskell, in your opinion, suck? by brianwawok on Monday April 18, 2016 @11:26AM (#11520648)
I like this explanation ;)

So apply a binary search to an effect instead of a value.