merits of Lisp vs Python
Paul Rubin
http
Mon Dec 11 19:40:52 EST 2006
André Thieme <address.good.until.2006.dec.22 at justmail.de> writes:
> > import module
> > module.function = memoize(module.function)
>
> Yes, I mentioned that a bit earlier in this thread (not about the
> "during runtime" thing).
> I also said that many macros only save some small bits of code.
> Your python example contains 4 tokens / brain units.
> The Lisp version only has 2.
You shouldn't count the import statement, since you'd need the
equivalent in Lisp as well.
Contrast the much more common
a[i] = b[n]
with
(setf (aref a i) (aref b n))
and the attractions of Python may make more sense.
More information about the Python-list
mailing list