Why is Python popular, while Lisp and Scheme aren't?
Greg Ewing
see_reply_address at something.invalid
Sun Nov 10 22:16:55 EST 2002
Pascal Costanza wrote:
> In Common Lisp, you can have:
>
> (paint circle :on canvas :at point)
>
> Given that you have defined paint as follows:
>
> (defun paint (&key on at)
> ...)
Python still goes one better, because (for user-defined
methods at least) you can supply arguments by keyword even
if they *haven't* been declared that way!
--
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list