By Nat Pryce and Duncan McGregor.
Kotlin largely inherits Java's exception mechanism, but exceptions and functional programming are uneasy bedfellows, leading to most projects adopting a wing-and-a-prayer as their error handling strategy.
It needn’t be so ad-hoc though. We compare and contrast different techniques for handling errors in Kotlin programs. We will discuss the sweet spots, pitfalls and trade-offs encountered in each technique, illustrated with examples from real projects.
Presented at KotlinConf 2019.
Video: https://youtu.be/pvYAQNT4o0I