Re:Please do not attempt to simplify this code
by pwm on Friday December 28, 2018 @05:11AM
(#18775949)
I think what the parent comment referred to is that in Haskell if/then/else is an expression (like everything else) so you must by definition have to have an else “branch”. Basically it frees you from a subtle type of error.
[ Parent
| on HN ]
Re:Please do not attempt to simplify this code
by karmasimida on Friday December 28, 2018 @04:22PM
(#18779522)
Those are micro level features. For mission critical module like this, it is unlike those low-level bugs will be left without notice.
But the true complexity is coming from states, and combination of states, and many of those are unknown to the developer until certain incidents kicked in. Good programming practice can't relieve programmers from the cognitive burden of reasoning the outcome of those combinations.