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
-------------------------------------------------------------------------
Смотрите видео Functional Error Handling in Kotlin, Part 3 - the Raise DSL онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Rock the JVM 21 Сентябрь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,16 раз и оно понравилось 6 людям.