Conversation

Checked exceptions aren't as nice as reporting errors directly via return types but it's a whole lot better than unchecked exceptions I can't understand why people hate checked exceptions so much and I find Kotlin removing them to be a huge downgrade when using Java libraries.
3
10
Replying to
There can be issues around checked exceptions and maintaining/breaking backwards compatibility for libraries 🤷‍♀️
1
Replying to
It's still a breaking change even if the API signature doesn't change. The way to prevent it from being a breaking change is to throw it as one of the already included checked exception types. If the function didn't throw and now does throw, that is itself the breaking change.
2
1
Show replies