[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Docs for &optional and &rest arguments together
From: |
Lars Ingebrigtsen |
Subject: |
Re: Docs for &optional and &rest arguments together |
Date: |
Wed, 30 Dec 2020 04:12:51 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Arthur Miller <arthur.miller@live.com> writes:
> (required-vars…
> [&optional [optional-vars…]]
> [&rest [rest-var]])
>
> But when I use it, I still have to pass a nil for the "optional"
> argument, which I think is also not so strange either, otherwise how
> will Emacs now where "optional" argument list ends and where "rest"
> argument list starts? No?
Right.
> If actual arguments for the optional and rest variables are omitted,
> then they always default to nil."
>
> https://www.gnu.org/software/emacs/manual/html_node/elisp/Argument-List.html
>
> I get the impression that I actually can omit the optional argument(s)
> even when followed by the &rest keyword.
The paragraph just below this one, though, describes in detail what
happens with a mixed &optional and &rest argument list, so that's not my
impression when reading that node.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Docs for &optional and &rest arguments together, Arthur Miller, 2020/12/29
- Re: Docs for &optional and &rest arguments together, Adam Porter, 2020/12/29
- Re: Docs for &optional and &rest arguments together,
Lars Ingebrigtsen <=
- Re: Docs for &optional and &rest arguments together, Arthur Miller, 2020/12/30
- Re: Docs for &optional and &rest arguments together, Yuri Khan, 2020/12/30
- 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