emacs-devel
[Top][All Lists]
Advanced

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

Re: Docs for &optional and &rest arguments together


From: Daniel Brooks
Subject: Re: Docs for &optional and &rest arguments together
Date: Thu, 31 Dec 2020 09:30:51 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

arthur miller <arthur.miller@live.com> writes:

> It Is flera för me hos it work. What I am saying is that docs does not
> say that we can't omit "optional" c or d when &rest is used. In the
> examples you are illustrating with, one can't omit say d and write
> (foo a b c e), both c and d are required, so user has to pass
> explicitly at least nil if not d is provided: (foo a b c nil e)

It has the same behavior even when there is no &rest argument. The
caller cannot omit argument c while still supplying argument d without
inserting a nil: (foo a b d) vs (foo a b nil d). Both c and d are
_optional_, because the caller deson't have to supply them. But it does
have to supply the earlier ones if it wants to supply the later ones.

db48x



reply via email to

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