Stacktrace and error monads in Clojure -
i not sure whether error handling monads considered best practice clojure seems quite popular (however, still see exceptions used lot). monads seem more functional approach error handling. however, missing stacktrace when using error monads. there way how stacktrace when using monads? or alternative in here?
as muhuk says, you'd use monad avoid getting stacktrace.
an article discovered when answering another recently relates 1 linked http://overwatering.org/blog/2013/12/clojures-thread-for-monads
it builds m->
threading monad, , gives example of using produce fail->
monad based on work in error monads article. allows return different error types during execution.
Comments
Post a Comment