[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
- Re: Docs for &optional and &rest arguments together, (continued)
- Re: Docs for &optional and &rest arguments together, Lars Ingebrigtsen, 2020/12/30
- RE: Docs for &optional and &rest arguments together, arthur miller, 2020/12/31
- Re: Docs for &optional and &rest arguments together, tomas, 2020/12/31
- RE: Docs for &optional and &rest arguments together, Drew Adams, 2020/12/31
- RE: Docs for &optional and &rest arguments together, Drew Adams, 2020/12/31
- RE: Docs for &optional and &rest arguments together, arthur miller, 2020/12/31
- RE: Docs for &optional and &rest arguments together, Drew Adams, 2020/12/31
- RE: Docs for &optional and &rest arguments together, arthur miller, 2020/12/31
- RE: Docs for &optional and &rest arguments together, Drew Adams, 2020/12/31
- RE: Docs for &optional and &rest arguments together, arthur miller, 2020/12/31
- Re: Docs for &optional and &rest arguments together,
Daniel Brooks <=
- RE: Docs for &optional and &rest arguments together, arthur miller, 2020/12/31
- Re: Docs for &optional and &rest arguments together, address@hidden, 2020/12/31
RE: Docs for &optional and &rest arguments together, arthur miller, 2020/12/31