News for hackers. Stuff that matters.
Re:Rust’s async isn’t colored by pansa2 on Thursday March 11, 2021 @07:59AM (#26423480)
The example uses `g(h2)`, not `g(h2())` - `g` takes the function `h2` as an argument, and the call(s) to `h2` are made from within `g` itself.

If calling `h2` requires an `await` if and only if `h2` is async, then the function `g` can’t be used for both the synchronous and async cases. AFAIK this is the main objection to having two function colours.

Re:Rust’s async isn’t colored by gpderetta on Thursday March 11, 2021 @08:25AM (#26423725)
exactly this. Unless the language allows abstracting over the async/non-async calls.