Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add or else methods to option closes #31 #47

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

Tyrrx
Copy link
Member

@Tyrrx Tyrrx commented Jan 31, 2025

No description provided.

@Tyrrx Tyrrx requested a review from ax0l0tl January 31, 2025 08:31
@@ -79,6 +84,16 @@ public async Task<TResult> Match<TResult>(Func<T, Task<TResult>> some, Func<Task

return await none().ConfigureAwait(false);
}

Copy link
Member

@ax0l0tl ax0l0tl Jan 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this actually a breaking change? -> GetValueOrDefault...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean the match? In certain cases, as seen in GetValueOrDefault, it breaks the C# type inference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants