Skip to content

Add LINQ syntax to Result and AsyncResult so each other can be used as binders and projectors.#112

Open
aralmo wants to merge 18 commits intomasterfrom
enhace-linq-syntax
Open

Add LINQ syntax to Result and AsyncResult so each other can be used as binders and projectors.#112
aralmo wants to merge 18 commits intomasterfrom
enhace-linq-syntax

Conversation

@aralmo
Copy link
Copy Markdown
Collaborator

@aralmo aralmo commented Sep 17, 2025

eg-pseudo;
await
from x in SomeAsyncResult
from y in SomeTask
select SomeResult(x,y)

await
from x in SomeResult
from y in SomeAsyncResult
select SomeTaskResult(x,y)

I believe it's cleaner as you can avoid the Go.Async() while using LINQ syntax as this step is done inside one of the new Select or SelectMany overloads.

@aralmo
Copy link
Copy Markdown
Collaborator Author

aralmo commented Sep 19, 2025

This is not as clean as I'd like it to be, I want to ask you about a couple of things when you have time.

  • How the injected models for testing work
  • Possibility of a stack trace on linq syntax.

I know you are busy, so just leave this for a better moment, I'm using it branched anyway.

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.

1 participant