nlfiedler / bakeneko

Scheme R7RS interpreter in Go
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Support call/cc #9

Open nlfiedler opened 11 years ago

nlfiedler commented 11 years ago

Provide the call-with-current-continuation procedure, usually aliased to call/cc. This is specified in section 6.10 of R7RS, and a simple implementation can be found in lispy.py. This procedure is useful for implementing other interesting control structures (e.g. exceptions) and hence is highly regarded.

nlfiedler commented 10 years ago

Take a look at Matt Might's essay on the topic of compiling continuations, and continuation-passing style in general [1].

[1] http://matt.might.net/articles/cps-conversion/