Greg Ewing wrote:

> BTW, if you *really* want to understand continuations, you
> need to carry out the following exercise: Write a Scheme
> interpreter in Scheme, doing it in a continuation-passing
> style. [1]
> 
> You'll find that it's possible to do this using a subset
> of Scheme that doesn't itself have continuations, yet it
> will be trivially easy to make it so that your interpreter
> implements a Scheme that does.
> 
> If you carry out this exercise successfully, and make it
> actually work, at some point along the way you will have
> a Zen-like flash of insight, and will suddenly understand
> exactly what a continuation is and how it works.
> 
> (The other possibility is that you will still be none the
> wiser. If this happens, you will never understand
> continuations. Give up programming language implementation
> and become a potato farmer. :-)

Thanks for the suggestion, Greg.  Methinks I'll just go get
myself hammered on some vodka... a much easier way to get the
same kind of headache...

_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to