Ideas for implementing first-class continuations
Exception approach
- Provides a one-shot outward continuation
- Cant be resumed
Concurrent threads
- Can suspend/resume
- Can't escape
Using generator blocks (aka yield)
Partial CPS application (from PLT paper)
- Proper continuation support