Re: What are closures, continuations?

From: Simen E. [mailto:[email protected]]

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?

On 10/27/06, Gavin K. [email protected] wrote:

From: Simen E. [mailto:[email protected]]

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 S. wrote:

But seriously, continations can be useful in some situations;

Obsfucated code contests? :stuck_out_tongue_winking_eye:

although, most of the time you can get away without them.

Joe