[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

&WHOLE with other args...



You may have misinterpreted the semantics of &WHOLE
    Date: 3 November 1980 06:01-EST
    From: Kent M. Pitman <KMP at MIT-MC>
    .  .  .
    I should hope you don't make this work! Asking for it to work is like 
	    (DEFUN FOO (&REST BAR &OPTIONAL BAZ) (LIST BAR BAZ))
	    (FOO 3 4)
    to return
	    ((3 4) 3)
    ... yuk! You should have to do 
	    (DEFUN FOO (&WHOLE FORM) (LET ((W (CDR FORM))) ...))
    in order to win. -kmp
Whereas &optional and &rest (and all the "&requireds") are necessarily
sequentially parsed, &whole is totally independent of all of them.