On 10/27/06, Gavin Kistner <gavin.kistner / anark.com> wrote:
> From: Simen Edvardsen [mailto:toalett / gmail.com]
> > Here's an example of how
> > closures and continuations are useful, cooperative threading:
>
> [snip crazy example]
>
> Can someone who isn't busy snorting crazy programming crack explain to
> me what the heck that example is showing?

Err...closures and continations? =)

But seriously, continations can be useful in some situations;
although, most of the time you can get away without them.  Take for
instance generators.  You can create them using continuations, but
they can also be implemented using closures and, if I'm not mistaken,
threads as well.

I believe the standard generator library is implemented using
continations if anyone is looking for an example in ruby.  There is
also plenty of good stuff if you look on any site on scheme.


-- 
Lou.