bug-guile
[Top][All Lists]
Advanced

[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: 19 Nov 2001 23:23:06 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

Thien-Thi Nguyen <address@hidden> writes:

> so what's the idiom to isolate the non-keys rest-args?  i can't believe
> everyone is writing `remove-keys' (like me!)...

In Common Lisp, there are no non-key rest-args when you have keyword
parameters.  After the required and optional arguments, there must
follow an even number of additional arguments, and every two of them
are treated as a keyword/value pair.

I think it makes sense the way CL specifies this.  Anything beyond
this would lead to confusion.  If you want to go beyond what (ice-9
optargs) offers, yo are probably best off writing your own argument
parser.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]