Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's the theory. In practice, your code is clearer if you use Maybe's all along the composition path, otherwise you spend your time unboxing/lifting values.


    let x = y
is not a lot more complicated than

    x <- y


No you don't.

    clearCode = funcWithMaybe <=< (return . somePureStuff) <=< anotherFuncWithMaybe




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: