In the previous sections we have seen how to write the Tic-Tac-Toe application with ZLayers, using ZIO 1.0.10, the latest stable release of ZIO at the time of writing. In this section we’ll take a sneak peek into the ZIO of the (near) future. We’ll be able to do this because ZIO 2.0.0-M1 has just been released, so we can have a taste of what’s waiting for us in ZIO 2.0!
ZIO 2.0 will bring several improvements (some of them already available in ZIO 2.0.0-M1):
As for ZLayers, the big news is that the functionality of the ZIO Magic library will be included out of the box in ZIO 2.0! So, we won’t need ZIO Magic anymore, and we can already use the following methods in ZIO 2.0.0-M1:
The following methods are not available in ZIO 2.0.0-M1 yet, but they will be available in future releases (and you can still use ZIO magic in the meantime):
If you want to check out how the code of our Tic-Tac-Toe application looks with ZIO 2.0.0-M1, you can see it in the 2.x branch of jorge-vasquez-2301/zio-zlayer-tictactoe repository.