Re:Await in Rust
by naasking on Wednesday August 14, 2019 @09:43AM
(#20695454)
You're right that it's not strictly necessary, but as I said, it falls out naturally from computing the required continuations. This optimization doesn't necessarily happen naturally when compiling direct code, depending on your intermediate IR of course, ie. say, if your IR is already continuation-based.
It'll be interesting to see how this plays out on the JVM though.
It'll be interesting to see how this plays out on the JVM though.