Hacker News new | ask | show | jobs
by withoutboats3 867 days ago
This is what I describe as "stackful coroutines" in the final section of the post.
1 comments

Is stackfulness required for what the grandparent describes? It seems possible to do this stacklessly: all functions implicitly compile down to a state machine, but futures are never visible.
You need stackful coroutines or continuations (which become really just a kind of growable stack) if you want recursive functions. This is a limitation of Rust’s design.