Failure is not an Option. Error handling strategies for Kotlin programs

5358df52bd2ef4f57da1b1cc8634cfd9?s=47 Nat Pryce
December 06, 2019

Failure is not an Option. Error handling strategies for Kotlin programs

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

5358df52bd2ef4f57da1b1cc8634cfd9?s=128

Nat Pryce

December 06, 2019
Tweet