Subject: Re: Using backquote
From: Erik Naggum <erik@naggum.no>
Date: 03 Oct 2002 10:41:31 +0000
Newsgroups: comp.lang.lisp
Message-ID: <3242630491889838@naggum.no>

* Kaz Kylheku
| It's not an unheard of practice to capture keyword parameter lists
| using &rest and then to filter them.

  It is still bad practice.  You should treat a &rest list as read-only.

|    (defun fun (&rest key-list &key a b c &allow-other-keys)
|      ;; oops, no copy-list done!

  That would be a serious bug.

| So if you put the two together, you can see why Ingvar might have
| concerns.

  The traditional Lisp thinking about the ownership protocol is that you
  have to be explicit about modifying the structure of your arguments.
  Unless you have explicitly made that part of the function definition, a
  caller is allowed to assume that the arguments were not modified, which
  means that you /never/ break that assumption.

-- 
Erik Naggum, Oslo, Norway

Act from reason, and failure makes you rethink and study harder.
Act from faith, and failure makes you blame someone and push harder.