Closed caub closed 6 years ago
They seem unrelated to me. I'll close but feel free to ask for clarification in the closed thread.
Right, blocks are always async, do-expressions can be sync
do expressions also can use bindings without explicitly capturing them, and aren’t first-class repeatable code.
I mean, they're just different features. The only commonality is that they allow code between some sort of braces. But that's like saying that do expressions are the same as if statements or for loops.
This proposal looks more powerful than do expressions, would it be worth having those 2 proposals together?