Functional Error Handling In Kotlin: Either and Result

Описание к видео Functional Error Handling In Kotlin: Either and Result

blog post: https://blog.rockthejvm.com/functiona...
Complete Kotlin course: https://rockthejvm.com/p/kotlin-essen...

This video is a long-form tutorial on how to deal with errors in an idiomatic way in Kotlin. We will look at how the "traditional" try-catch-finally blocks allow us to deal with errors, but the code becomes hard to read very quickly.

We will look at the Kotlin Result type to deal with potentially failed computations, how to build them, how to extract values out of them, and how to transform them in an idiomatic and functional way with the Arrow library.

We will also look at the Kotlin Either type, which allows us to represent errors as any kind of type we find useful, besides the JVM Throwable type.

Follow Rock the JVM on:
LinkedIn:   / rockthejvm  
Twitter:   / rockthejvm  
Blog: Blog: https://blog.rockthejvm.com

-------------------------------------------------------------------------
Home: https://rockthejvm.com
-------------------------------------------------------------------------

Комментарии

Информация по комментариям в разработке