[Haskell-cafe] Why Maybe exists if there is Either?

Brandon Allbery allbery.b at gmail.com
Thu Jan 9 16:32:01 UTC 2014


On Thu, Jan 9, 2014 at 11:25 AM, Vlatko Basic <vlatko.basic at gmail.com>wrote:

> > ... is letting the programmer do what they need to do with a minimum of
> fuss or extra work ...
> But doesn't the need of mixing Maybe and Either cause more work for the
> programmer? Programmer of library, or programmer using the library?
>

Arguably if you need to switch from Maybe to Either then you did not think
out your program sufficiently beforehand. And if you did think it out, what
exactly is the problem with using appropriate data types in appropriate
places?

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140109/578a3b91/attachment.html>


More information about the Haskell-Cafe mailing list