« Bugs fixed in Links (Mutually-recursive functions, etc.) | Main | Shared Memory »

Sugar for continuations

Implemented a rudimentary version of the handle/with construction in Links. Now you can write, e.g.:

handle
    <foobar> {string_of_cont(handler)} </foobar>
with
    result -> "You gave me " ++ result ++ ", fool!"

The result of this construct is something like

<foobar> (some base64 stuff) </foobar>

and the base64 stuff is a continuation which wraps its argument in "You gave me ..., fool!" This is not quite what I want but it's a start.

Post a comment