Haskell approaches to error handling
In Haskell, I’d be wrapping this code in some combination of monads, using Maybe’s and Either’s and translating and propagating errors as necessary. In the end, it all gets to an IO monad where I am able to output the status to the user. In another language, I simply throw an exception and catch in … Read more