Just thinking out loud... maybe the Arrow adapter ...
# akkurate
d
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
I remember you suggested that earlier in GH discussions, I think it’s a really good idea and I will probably implement this 🙂
👍🏼 1