Error Handling in Kotlin: The Result Monad with Adam Bennett, Android Worldwide, July 14th 2020

Опубликовано: 05 Октябрь 2024
на канале: Android Worldwide
1,729
47

In the very first Android Worldwide event, Adam Bennett discusses error handling and modelling expected exceptions in Kotlin.

Kotlin doesn’t force you to handle functions that might throw exceptions, so how can we best ensure that our code is safe to execute whilst handling errors in a reasonable way? In this talk, we’ll look at some strategies that the team at Cuvva evaluated and discuss in-depth the solution they chose: the Result Monad. We’ll talk about how it works, discuss how utilising this strategy can help you, and how we adopted these to great effect at Cuvva.

Check out Adam's blog: https://adambennett.dev/2020/05/the-r...
Slides: https://speakerdeck.com/ditn/kotlin-e...