ZIO 2: How to implement the 'run' value (different solutions)
As I wrote in my ZIO “mental model” and best practices article, when I work with ZIO, I like to separate (a) my application from (b) the ZIO run
value. Specifically I mean that I like to handle the results of the application in the run
value. (If you’ve read my previous ZIO blog posts, when I say “application,” I mean our main equation or blueprint.)
There are quite a few different ways to write a ZIO run
value, and in this tutorial I want to show many of the different ways I know, or at least those I can remember today. :)