Posts tagged with "call/cc"
Gems in Scheme (Part 3)
October 19th, 2009
In my last post I described the use of call-with-current-continuation to implement coroutines, thus inverting for-each-style iterations into cursor-style iterations. I noted that this looks very similar to using threads.
This is part 3 of our Gems in Scheme series.
Gems in Scheme (part 2)
August 17th, 2009
In my last post I described some of the use of call-with-current continuation for non-local or other sorts of dynamic exits. These uses of call/cc are similar to exceptions in many other languages, or a catch/throw mechanism.
This is part 2 in our Gems in Scheme series.
Gems in Scheme
July 27th, 2009
One sometimes hears that call-with-current-continuation is useless or pointless. Such things have come from the Python developers, and while Ruby 1.8 had a call/cc method, it’s not clear if it will survive in the next major release, allegedly because it’s “useless” or “too expensive”.
In fact, I tend to think that in fact, these developers simply don’t understand what call/cc is about or why it is valuable. So I’ll show some examples.
This Part 1 of our Gems in Scheme series