merits of Lisp vs Python

Paul Rubin http
Mon Dec 11 00:06:56 EST 2006


"Alex Mizrahi" <udodenko at users.sourceforge.net> writes:
>  PR> I don't see how to implement coroutines with CL macros.  Maybe I'm
>  PR> missing something.
> 
> read the book.

Which book?

> but once you convert it to CPS, you just operate with closures. stack is 
> just a lexical variables caught into closure.
> do you know what does CPS mean at all??

I once understood the basic notion but confess to have never been
clear on the fine points.  However, I don't see how you can do it with
CL closures since CL semantics do not guarantee tail recursion
optimization.  If you code a loop with closures and CPS, you will blow
the stack.



More information about the Python-list mailing list