-
Notifications
You must be signed in to change notification settings - Fork 304
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
Question: How to use linq query syntax for Result types #566
Comments
We're trying to keep naming consistent in this library. In the earlier days there were discussions on which naming approach to choose: the C# one ( So all The downside to this decision is that Linq expressions ( |
The reason for using linq expressions is that you can combine results from many different monads. You can’t do that with the regular linq syntax without multiple select many expressions. I would ask that you please reconsider as the rest of the api is complete in regards to the overloads for linq query expressions. |
OK, makes sense. Feel free to submit a PR. A couple of implementation notes:
|
That has been done in this commit. |
Would you be able to raise a PR for this commit? Just select your branch here: https://github.com/vkhorikov/CSharpFunctionalExtensions/compare and hit "Create pull request" |
I have one here. :) |
Is the Select method not supported for linq query syntax for result?
As an example here is code that works with
Maybe
But does not work with Result
This is the error:
CS1936 Could not find an implementation of the query pattern for source type 'Result'. 'Select' not found.
I see the that SelectMany operation is supported but it looks like there is no select. Is this something that you would be open to me adding?
It would help with workflows like this
but for results.
The text was updated successfully, but these errors were encountered: