[plt-scheme] Re: newbie:howto use package=control.plt&owner=soegaard

From: Noel Welsh (noelwelsh at gmail.com)
Date: Mon Jun 16 11:08:59 EDT 2008

I tried to load the package and saw a bunch of errors.  However I'm
not sure they all matter, as they seem to refer to tests and other
files that are non-core.  So you might be able to use it as is (I
haven't tried).

For implementing labelled gotos you can use mutually recursive
functions.  Escape continuations give you early exits.

Here's a contrived example:

 (let/ec break
  (define counter 10)
  (define (label-1)
    (if (zero? counter)
          (set! counter (sub1 counter))
  (define (label-2) (break 'bye))


Posted on the users mailing list.