pablisco
04/14/2021, 9:52 AMkotlin.Result
?It’s becoming stable on 1.5? If only we get comprehensions would be a nice addition IMHO 🙂
val friendsNames: Result<List<String>> = result {
val user = getCurrentUser().bind() // Result<User>
val friends = friendsFor(user).bind() // Result<List<User>>
friends.map { it.name }
}
simon.vergauwen
04/14/2021, 10:00 AM@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!pablisco
04/14/2021, 10:01 AM