merits of Lisp vs Python

Paul Rubin http
Sun Dec 10 03:08:33 EST 2006


Jon Harrop <jon at ffconsultancy.com> writes:
> >> The nice thing in Lisp would now be to save a lambda with the macro.
> >> In Python one would fill the name space with throw away functions that
> >> get called only one time.
> 
> That is a deficiency of Python that doesn't exist in modern FPLs like OCaml,
> SML, Haskell, F#...

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, the
function is a first class object like an integer.



More information about the Python-list mailing list