BasicWrapperTool provides two primary types of wrappers/containers: Maybe
and Result
.
The Maybe<T>
type is designed to represent an input value (argument) of a reference type that might or might not exist, potentially avoiding a null reference.
Benefits:
- Honest method signatures
- Avoids null-checks
- Mitigates the billion-dollar mistake (NullReferenceExceptions)
The Result
type is designed to represent the return value of a method along with its operation status.
Represents the operation status of a method.
Represents both the operation status and the outcome value of a method.
Benefits:
- Honest method signatures
- Avoids null-checks
- Follows the Notification Pattern
- Adheres to the CQS (Command Query Separation) design principle
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License.