It's worth pointing out that Kotlin's standard library contains a type called `Result` with a slightly different API. Also a function called `runCatching`[1] that uses it.
[1] https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/run-catc...
[1] https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/run-catc...
No comments yet.