Re:What Compsci textbooks don't tell you: Real world code sucks
by mifrai on Saturday December 22, 2012 @04:52PM
(#4957602)
Honestly, I don't think danidiaz was trying to be clever so much as not knowing about the existence of filterM. A good chunk of the code was just an implementation of it:
So, given filterM, the code would have looked like
Which doesn't look clever at all and it's fairly easy to understand.
[ Parent
| on HN ]