use of &rest and &key at the same time in Common Lisp
问题 I want to use both &rest and &key at the same time. However, the attempted code below: (defun test (&rest args &key (name "who")) nil) (test 1 2 3 4 5 :name "hoge") causes an error: *** - TEST: keyword arguments in (1 2 3 4 5 :NAME "hoge") should occur pairwise and when I gives only keyword parameter like (test :name "hoge") , it works. Is it possible to use both &rest and &key? 回答1: It's generally not a good idea to mix rest parameters with keyword parameters within a function definition in