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
It would be convenient to have an explicit type parameter on ignore:
ignore
let inline ignore<'a> (x: Task<'a>) = x |> map ignore
This allows being more strict by specifying the data that's intended to be discarded.
This is similar to the recommendation to supply a type to the string function so it is tolerant to type refactors https://g-research.github.io/fsharp-analyzers/analyzers/TypeAnnotateStringFunction.html
The text was updated successfully, but these errors were encountered:
Agreed! Would you like to send a PR for this?
Sorry, something went wrong.
Done! Let me know if there's anything else to do. I can add a test if you think it's worth it.
No branches or pull requests
It would be convenient to have an explicit type parameter on
ignore
:This allows being more strict by specifying the data that's intended to be discarded.
This is similar to the recommendation to supply a type to the string function so it is tolerant to type refactors https://g-research.github.io/fsharp-analyzers/analyzers/TypeAnnotateStringFunction.html
The text was updated successfully, but these errors were encountered: