Re: Re: Proposal: `await.all {...}` for parallelism

2019-11-23 Thread Tom Boutell
This is very interesting, but this code: await.all { x = getXAsync(); y = getYAsync(); } processXAndY(x, y); Still carries within it the problem that if I'm looking at just the middle of the { ... } block — if "await.all" has scrolled offscreen — I'll be completely wrong about what ";" mea

Re: Re: Proposal: `await.all {...}` for parallelism

2019-11-23 Thread Naveen Chawla
However, if `await.all { ... }` were to mean "wait for all non-awaited async function calls made within this block to complete before proceeding", as I suggested earlier, I think that could satisfy determinism for "await" wherever it is used, and satisfy the original motivation: ``` await.all {