ZIO: How a ZIO value looks like a blueprint in the Scala REPL

A nice thing about using ZIO in the Scala REPL is that it really demonstrates the whole “blueprint” concept. As shown in the example below, after I create the username variable, the REPL shows that username is basically just a data structure. Nothing happens at this time other than the creation of that data structure, which can be executed at a later time.

Photo D8
ZIO: How a ZIO value looks like a blueprint in the Scala REPL