merits of Lisp vs Python

Juan R. juanrgonzaleza at canonicalscience.com
Sun Dec 10 10:10:23 EST 2006


Kirk Sluder wrote:

> In article
> <pan.2006.12.10.14.24.05.648068 at REMOVE.THIS.cybersource.com.au>,
>  Steven D'Aprano <steve at REMOVE.THIS.cybersource.com.au> wrote:
>
> > Yes. But you can't redefine 1+2 in Python, at least not without hacking
> > the interpreter. Can you redefine (+ 1 2) in Lisp?
>
> Not without barreling through error messages about name conflicts.

By LISP do you mean CL?

In Scheme next

(+ 1 2)
--> -1

is possible. It would be possible in other dialects of LISP also




More information about the Python-list mailing list