https://kotlinlang.org logo
#arrow-contributors
Title
# arrow-contributors
p

pablisco

04/14/2021, 9:52 AM
Are we planning to (or have already) support for
kotlin.Result
?It’s becoming stable on 1.5? If only we get comprehensions would be a nice addition IMHO 🙂
Copy code
val friendsNames: Result<List<String>> = result {
  val user = getCurrentUser().bind() // Result<User>
  val friends = friendsFor(user).bind() // Result<List<User>>
  friends.map { it.name }
}
s

simon.vergauwen

04/14/2021, 10:00 AM
Hey @pablisco 👋 Yes, we can add it for sure. We can actually already add them, as long as we also add the
@Exerpimental
annotation. IIRC it should go stable in 1.5 yes. If you have some time feel free to raise a PR for it, or otherwise create a ticket would be great!
🎉 1
p

pablisco

04/14/2021, 10:01 AM
Super, just wanted to check it wasn’t planned yet 🙂 I’ll see if I can find some time for it
3 Views