https://kotlinlang.org logo
#akkurate
Title
# akkurate
d

dave08

10/29/2023, 10:36 AM
Just thinking out loud... maybe the Arrow adapter shouldn't just translate a ValidationResult to Either, but rather provide it's own
.bind()
and function with
Raise
that returns the success's value, or raises the error or exception... but then maybe both error types should be encapsulated in their own sealed interface? That would avoid the overhead of having to convert to Either just to bind or raise etc...
💯 1
j

Johann Pardanaud

10/29/2023, 10:46 AM
I remember you suggested that earlier in GH discussions, I think it’s a really good idea and I will probably implement this 🙂
👍🏼 1