simon.vergauwen
03/09/2021, 7:24 AMeither { }
but without having to throw exceptions but by keep working with typed errors instead.
Here is a gist of a couple extensions that show-case how you can add this custom syntax to the either { }
block. This is something we could potentially also add in Arrow in the future. I think it fits the Kotlin spirit.
https://gist.github.com/nomisRev/8f10a30f4f087d24a006a0b6093b4c8f