πCompiling with continuations
Even if the source language does not expose continuations as an abstraction for the programmer, continuations can still be useful as a language implementation technique.
e.g., effects in Leijen2016 can be clearly implemented with continuations.
CPS also shares properties with other intermediate representations:
See also
Double-barrelled continuationsβpassing two continuations: one normal and one for exceptions.