"If you have used OCaml 5 this will feel familiar, except OCaml keeps its effect...
InnocentZero @innocentzero@social.tchncs.de
"If you have used OCaml 5 this will feel familiar, except OCaml keeps its effects out of the types, so you find out about an unhandled one at runtime, in production, on a Friday."
"If you have used Haskell this will also feel familiar, except in Haskell you would be assembling a monad transformer stack, lifting each operation through every layer by hand, and explaining to a junior colleague that a monad is just a monoid in the category of endofunctors, what's the problem."
https://www.stephendiehl.com/posts/prism/
#ocaml #functionalprogramming #haskell #programminglanguages