Package com.guinetik.corefun.examples
Class ResultExample
java.lang.Object
com.guinetik.corefun.examples.ResultExample
Demonstrates usage of the Result monad for functional error handling.
Result<S, F> represents either a Success containing a value of type S,
or a Failure containing an error of type F. This eliminates null-checking
and exception handling in favor of explicit, composable error handling.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ResultExample
public ResultExample()
-
-
Method Details
-
main
-