[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Argument Lists
- To: common-lisp%SU-AI@SRI-KL
- Subject: Re: Argument Lists
- From: David Singer <DSinger@SRI-KL>
- Date: Fri 27 Jun 86 10:04:27-PDT
A simple proposal is to provide ARGUMENT-LIST, and also
FORM-IS-VALID-CALL i.e. takes the result of ARGUMENT-LIST and a call form
and tells you whether the call form is valid for the given argument list;
a second result might perhaps be a suitable error message if result1 is
false. This would enable user-interface construction tools to check
calls without all a lot of fussing with max, min, keywords, rest etc.
Of course if you really wanted to know what was happening, you could
always have a function which returned an association list showing
how the bindings would go in such a call ...
-------