merits of Lisp vs Python

Paul Rubin http
Sun Dec 10 04:29:17 EST 2006


Jon Harrop <jon at ffconsultancy.com> writes:
> > Nothing stops you from re-using the same internal function name in
> > your Python code, like you might use "i" as a throwaway loop index in
> > several places in the same function.  It's just like in Scheme...
> 
> It is not "just like in Scheme" if you don't have anonymous functions in
> Python.

Python has anonymous functions (what they can do is somewhat limited
by syntax) but the similarity mentioned with Scheme was about the data
objects.  Anyway you don't need to pollute the namespace with lots of
(i.e. more than one) different temporary function name even if you use
non-anonymous functions.



More information about the Python-list mailing list