Functional Error Handling in Kotlin, Part 3 - the Raise DSL

Описание к видео Functional Error Handling in Kotlin, Part 3 - the Raise DSL

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

Related videos:
Idiomatic error handling in Kotlin, part 2 - Either & Result:    • Functional Error Handling In Kotlin: ...  
Kotlin Context Receivers:    • Kotlin Context Receivers - How to Use...  

This video is a long-form tutorial with yet another way to deal with errors in an idiomatic way in Kotlin.

We will look at the Raise DSL, and how we can treat potentially failed computations with typed errors, but only if and when we want to deal with those errors. We compare the Raise DSL with the checked mechanism in Java and learn why it's far more flexible.

We will also learn to convert potentially failed Kotlin computations in the context of Raise, to and from Options, Either and Result (the data structures we explored in the previous videos).

Finally, we cover some best practices on how to deal with errors effectively in Kotlin with the Raise context.

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

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

Комментарии

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