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

CE PoC, trying out custom operations in a CE that has bind and yield, which seems impossible yet #207

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

Conversation

abelbraaksma
Copy link
Member

@abelbraaksma abelbraaksma commented Dec 18, 2023

So, we can add CustomOperation operations to a CE that has bind (but the requirements are rather odd), or we can have them with yield (similar to how query works in F# Core), but the combination of the two seems to be impossible.

Since TaskSeq has both bind (unpack a task or async) and yield (act like a sequence), this is a problem (well, to the extend that we'd want custom operations, but before I decide I like to know how to do it to begin with).

Nothing of this is currently slated to go into main, it may be that there is no good way to fix this until F# itself has this (assuming it is a bug).

@abelbraaksma abelbraaksma added topic: taskseq-ce Related to the taskseq computation expression builders or overloads experimental labels Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experimental topic: taskseq-ce Related to the taskseq computation expression builders or overloads
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant