Hacker News new | ask | show | jobs
by benol 2374 days ago
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...