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.
(side note) Regarding the first case, one can also use a simple escape continuation ("ec"):