Porting some code from OCaml to Scheme, the amount of boilerplate that goes away is staggering. Of course, I am also losing a whole lot of safety and refactoring help. But this sure makes the cost visible.
I was using monads a lot for Async work. I was also using the Error monad to propagate errors, the State monad to handle an actor's state. And I was planning on using the Reader monad to pass around configuration and database or server connections.
-
-
Monads as a gateway drug for even more monads. Monads not even once :)
-
I being able to type restrictions on my code, but I'm much happier in direct style.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Read my blog!