Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

continuations and call/cc

Name: Anonymous 2010-01-04 20:48

You are on a desert island. There are ravenous lions and the bomb is about to go off. Your life now depends on teaching a complete ass fuck idiot what continuations are and how/when/where to use call/cc. Go!


The current status of /prog/ is such that I can post a dumb thread like this and actually improve the overall quality of the board, so no, I will not go back to /g/.

Name: Anonymous 2010-01-04 21:33

Continuations are like burritos.
First off, call/cc is a function and you can call it, like a burrito delivery service.
When you call it, you need to say where to deliver the burrito. If you tell them to deliver it to you in jail next week, you can escape from jail by eating the burrito which will warp you back to the phone. However because they'll find out if you're gone too long, you order a burrito from inside jail, and tell them to put it in the warphole created by the other burrito. Then when you're back at the phone you also have a burrito, which you can use to go back to jail before they count heads again. If you're smart, you keep copies of the burritos around so you can live an exciting double live.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List