Lazy Error Handling in Java, Part 2: Thrower is a Monad
2008年07月31日 23:41 • 查看 16 次 • 打印本文
In Part 1, we talked about the Thrower interface, and how we could use it to separate error handling from the code that produces those errors. We also saw how we could exploit generics to create a functor that can promote an existing function to a function that can handle and throw errors.
评论
发表评论