Hacker News new | ask | show | jobs
by ben-schaaf 2032 days ago
Kotlin doesn't have checked exceptions, so being able to do it in Kotin is irrelevant.
1 comments

What?

a) I asked how is it not possible in Java. The Kotlin library is just an example of something I use, it's not relying anything impossible in Java as far as I can tell... like I said reified generics don't change what the calls would look like, just what the implementation looks like

b) What do checked exceptions have using Result? The whole point is you use Result monads in all your code instead of exceptions. When interfacing with legacy code you wrap any exceptions in a Result class as well.