forked from altmann/FluentResults
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- I think it doesn't make sense to deconstruct both isSuccess/isFailure (just noisy, one would be enough and promoves uniform usage patterns) - If we're just interested in that specific property (success or failure, without getting the possible Result or IErrors) then we can just get that property - So if you're using a destructor on `Result<TValue>` you NEED to get TValue and optionally List<IError>. - For the non-generic Result (the one that does NOT hold an underlying TValue) the destructor `<bool isSuccess, List<IError> errors>` was moved down from the base class Refs altmann#217
- Loading branch information
Showing
5 changed files
with
19 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters