Join Slack
Well, this could all be written for `either { }` but without having to throw exceptions but by keep ...
# arrow
s
simon.vergauwen
03/09/2021, 7:24 AM
Well, this could all be written for
either { }
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
3
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by