I just noticed Autrijus Tang's concise explanation of continuations (via, via, but main post blogged earlier):
Just today I tried to explain continuations to two fellow Perl programmers, and I came up with the notion that it's just:
$continuation = \&return;
They grokked it instantly.
If continuations find general use (one reason I'm looking forward to Perl 6 is I want to see what happens when the creativity of the Perl community is unleashed on continuations) programming will become much more interesting.
Feel free to post a comment below. Please see my comment policy.
Formatting Rules (No HTML):