Conversation
Pull Request Test Coverage Report for Build 14536668061Details
💛 - Coveralls |
kfly8
added a commit
that referenced
this pull request
Apr 18, 2025
Changelog diff is: diff --git a/Changes b/Changes index 48f3529..aab3655 100644 --- a/Changes +++ b/Changes @@ -2,6 +2,15 @@ Revision history for Perl extension Result-Simple {{$NEXT}} +0.04 2025-04-18T22:53:43Z + - [BREAKING CHANGES] + - Renamed `Ok` to `ok`, `Err` to `err` #2 + - Removed `:Result` attribute, instead added `result_for` function #2 + - Changed default value of `$ENV{RESULT_SIMPLE_CHECK_ENABLED}` to `1` #2 + - [ENHANCEMENTS] + - Added `unsafe_unwrap` and `unsafe_unwrap_err` functions #2 + - Added `chain` and `pipeline` helper functions #3 + 0.03 2024-11-27T01:18:40Z - Improve docs #1
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces two new helper functions,
chainandpipeline, to theResult::Simplelibrary. These functions streamline handling of result types(T, E)in Perl, making it easier to perform sequential operations and validations. The changes include updates to the library's implementation, documentation, and test cases.New Features
chainfunction: Added a helper function to pass result tuples(T, E)to the next function in a sequence. If an error exists, it halts further processing and returns the error. Otherwise, it applies the function and returns the updated result.pipelinefunction: Added a helper function to create a composed pipeline of functions that process result tuples(T, E)sequentially. If any function in the pipeline returns an error, the pipeline halts immediately.