Replies: 4 comments 1 reply
-
|
Isn't that |
Beta Was this translation helpful? Give feedback.
-
|
I'm thinking this could be useful more like opinionated Either where you can use arbitrary types and not just exceptions |
Beta Was this translation helpful? Give feedback.
-
|
Lets continue in Conversations about |
Beta Was this translation helpful? Give feedback.
-
|
Let me migrate the issue to discussions |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Context:
In
Java 8, the language added few functional programming Types likeOptional<T>orCompletableFuture<T>(Promise) but not others likeEither<L, R>which is included in this library.Other modern programming language like
Kotlin,Rust,Swift,OcamlorF#addResultwhich was designed handle Error handling.Goal:
Add
Result<T>in the library.Examples:
Pending discussions:
Result<T>orResult<T, E>Note: Result<T, E> it is quite similar to Either<L, R>
Discussion branch:
Other links:
Juan Antonio
Beta Was this translation helpful? Give feedback.
All reactions