-
Notifications
You must be signed in to change notification settings - Fork 106
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
let-flow chokes when the body closes over a deferred. #47
Comments
@ztellman same code, I've just added |
It seems
Now that I've checked the docs again, it clearly says; "This is only true of values declared within or closed over by let-flow, however.". So it looks like a RTFM case, I'm closing this ticket. |
I have created alternate versions that don't block on everything: modest-let-flow I'd be happy to send a PR if we can come up with some descriptive name like |
So in your code, you didn't care about the closed over value being realized? Why were you referencing it, in that case? |
Consider this code:
It would block on In my case |
Interesting, the answer here may be to just make let-flow more ambitious, On Mon, Aug 17, 2015 at 10:21 AM Atamert Ölçgen notifications@github.com
|
Or make it more ambitious and only block on deferreds referenced by the deferreds in bindings. It would still be a bit surprisey that:
...but at least we'd know we can block on In any case I ♥ Manifold. |
The "contract" of let-flow is that "any deferred value that is referenced can be treated as if it's a realized value". I would rather make that a fully realized guarantee rather than weaken it. Does that make sense, or do you feel it's more confusing than helpful? |
No I get it. That's why I closed the ticket. I have two issues here (that I've solved for myself with the modest version):
All I need is syntactic sugar for let-zip-chain combo. I haven't found to a question where original I'm not arguing or asking you to change anything. This is just how it looks from my point of view. |
These two should be identical:
But using
[manifold "0.1.1-alpha3"]
the output is:It seems the second
let
is blocking becausek
is not realized.The text was updated successfully, but these errors were encountered: