so I was testing out the changes in 0.12.0-SNAPSHO...
# arrow
a
so I was testing out the changes in 0.12.0-SNAPSHOT and had a question around syntax, in the following function:
Copy code
suspend fun validateAndSave(a: RequestA): Either<Error, ModelA> = either {
    val validA = validate(a).bind()
    save(validA).bind()
}
would this be translated to the following and is that the expected route to take or is there some other syntacical sugar I can take advantage of?
Copy code
suspend fun validateAndSave(a: RequestA): Either<Error, ModelA> = either {
    val validA = validate(a)()
    save(validA)()
}
r
that is correct. Down the road we will add more operators beside bind that would let you do Validated + Validated, Either * Either and other things that will make it even easier to perform operations on the context.
👍 1