We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
GetOrElse
The uses of the two overloads of GetOrElse are not always clear to people, so I think an analyzer would help.
option.GetOrElse(() => 0f) // Warning: Pass 0f directly to GetOrElse option.GetOrElse(Function()) // Warning: Potential misuse of GetOrElse, pass method group instead.
The text was updated successfully, but these errors were encountered:
This should not only be done for GetOrElse, but also for the following:
AndThen
OrElse
Match
Sorry, something went wrong.
No branches or pull requests
The uses of the two overloads of
GetOrElse
are not always clear to people, so I think an analyzer would help.The text was updated successfully, but these errors were encountered: