We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functions like Try<T>.flatMap and Try<T>.fold swallow RuntimeExceptions, making it harder to find bugs.
Try<T>.flatMap
Try<T>.fold
For example, I tried to use a TODO(), but my application did not terminate:
TODO()
fun main(args: Array<String>) { val result = Success("Test").flatMap<Unit> { TODO() } println(result) }
Instead, the console prints
Failure(kotlin.NotImplementedError: An operation is not implemented.)
The text was updated successfully, but these errors were encountered:
MarioAriasC
No branches or pull requests
Functions like
Try<T>.flatMap
andTry<T>.fold
swallow RuntimeExceptions, making it harder to find bugs.For example, I tried to use a
TODO()
, but my application did not terminate:Instead, the console prints
The text was updated successfully, but these errors were encountered: