[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (ice-9 optargs) #:rest args polluted?
From: |
Marius Vollmer |
Subject: |
Re: (ice-9 optargs) #:rest args polluted? |
Date: |
13 Nov 2001 00:34:11 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
Thien-Thi Nguyen <address@hidden> writes:
> the code following produces this output (w/ "guile -s bug.scm")
> on guile-1.5.4:
>
> (#<procedure good x> ())
> (#<procedure good x> (1))
> (#<procedure good x> ((1 2 3)))
> (#<procedure blah x> JAY KAY (#:j JAY #:k KAY))
> (#<procedure blah x> JAY KAY (#:j JAY #:k KAY 1))
> (#<procedure blah x> JAY KAY (#:j JAY #:k KAY (1 2 3)))
>
> it seems to me `x' should be the same for both `good' and `blah'.
The behavior of Guile mirrors that of Common Lisp here, so I think we
should keep it. Together with :allow-other-keys, you need :rest to
get at the other keys; and without :allow-other-keys, :rest makes not
much sense, I'd say.