Why don't people like lisp?

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Thu Oct 23 20:41:48 EDT 2003


On Thu, 23 Oct 2003 19:35:05 -0400, Jon S. Anthony wrote:

> The above example (with some differing details I think) is given by
> Paul Graham in 2-3 pages of code in On Lisp in the Nondeterminism
> chapter.

In Scheme it doesn't use macros but continuations.

On Lisp's implementation of continuations for Common Lisp requires
changing the way functions are written (=defun, =values, =bind, =apply,
=funcall, =lambda). Writing it in a more natural style requires a code
walker ("beyond the scope of this book"), so it's not reusing the language
but reimplementing all the control structures in order to CPS-transform
everything. I don't see how a code walker can CPS-transform primitive
functions defined in C which call back to Lisp (e.g. mapcar) - how does it
do it?

If it can do it without reimplementing each such function, I would be
impressed. If not, this is only a partially correct solution; a full
solution requires continuations and it doesn't need macros.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak at knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/





More information about the Python-list mailing list