Skip to content

Instantly share code, notes, and snippets.

@jackfirth
jackfirth / continuation-lessons.md
Last active June 26, 2023 13:54
Examples of how to build control flow structures with continuations

Lessons in Using Continuations

This gist contains examples of how to build different kinds of control flow structures in Racket using macros and continuations. Examples include:

  • Early exit from functions using a return statement.
  • Early exit from arbitrary expressions using a simple exception system.
  • Temporarily interrupting execution in order to check permissions.