[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Docs for &optional and &rest arguments together
From: |
Yuri Khan |
Subject: |
Re: Docs for &optional and &rest arguments together |
Date: |
Wed, 30 Dec 2020 19:54:39 +0700 |
On Wed, 30 Dec 2020 at 19:20, Arthur Miller <arthur.miller@live.com> wrote:
> Which part of the doc does it say that &optional argument when
> used together with &rest, makes &optional argument mandatory, i.e. can
> not be ommitted when calling a function or macro?
Imagine If This Were Possible:
(defun foo (bar &optional baz &rest quux)
"doc"
nil) ;; the body is not important
(foo 3.14 42) ;; intending baz = 42, quux = nil
(foo 3.14 "xyzzy") ;; intending baz = nil, quux = ("xyzzy")
How would the interpreter decide whether you wanted to omit the
&optional argument or the &rest argument?
- 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, 2020/12/29
- Re: Docs for &optional and &rest arguments together, Arthur Miller, 2020/12/30
- Re: Docs for &optional and &rest arguments together,
Yuri Khan <=
- 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