[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Arg count checking
> Date: 8 Apr 85 17:06 PST
> From: card.pa@XEROX.ARPA
> Subject: Re: Arg count checking
> ....
> DEFINEQ
> ((NSPRINT
> (LAMBDA (PRINTER
> (FILE.NAME OPTIONAL)
> (DOCUMENT.NAME OPTIONAL)
> (DOCUMENT.CREATION.DATE OPTIONAL)
> (RECIPIENT.NAME OPTIONAL)
> (#COPIES OPTIONAL)
> (MEDIUM OPTIONAL)
> (PRIORITY OPTIONAL)
> (STAPLE? OPTIONAL)
> (TWO.SIDED OPTIONAL)))))
>
> implements a function where the first argument PRINTER is mandatory and
> the remaining are all optional.
I agree but thought at this design stage I could throw my
two cents in. It seems that rather than those redundant OPTIONALs
a default value would be more useful, the fact that it is a list
rather than an atom is sufficient to deduce that this is a keyword
parameter (and it makes the whole thing consistent with PROG.)
That's it...just two cents worth.
-Barry Shein, Boston University