Result type for operations that can either succeed or fail.
IResult is a discriminated union representing the outcome of an operation
that may fail. This pattern (often called "Result" or "Either" monad) enables
explicit error handling without exceptions.
Check the IResult.success | success discriminator to determine the
outcome:
Result type for operations that can either succeed or fail.
IResultis a discriminated union representing the outcome of an operation that may fail. This pattern (often called "Result" or "Either" monad) enables explicit error handling without exceptions.Check the IResult.success | success discriminator to determine the outcome:
true→ IResult.ISuccess with the result in valuefalse→ IResult.IFailure with the error in errorThis pattern is used throughout typia for safe operations like parsing and transformation where errors are expected possibilities.