Subject: Re: Using backquote From: Erik Naggum <erik@naggum.no> Date: 03 Oct 2002 10:43:39 +0000 Newsgroups: comp.lang.lisp Message-ID: <3242630619208550@naggum.no> * Frode Vatvedt Fjeld | But how about (some variation of) this scheme: | | (defun connect-to-server (servername &rest init-args &key (port 119)) | (let ((stream (open-nntp-stream servername port))) | (when stream | (let ((server (apply #'make-instance 'server | :name servername | :stream stream | :port port | (remf init-args :port)))) | ...)))) This `remf´ things seems to go by without comment, so it must mean that several people are not aware that only the first keyword-value pair that matches is actually used. Just passing `init-args´ alone is just fine, and avoids the problem that you screw with your caller. -- 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.