|
From: | Philipp Stephani |
Subject: | bug#24913: 25.1.50; Emacs accepts undocumented and confusing combinations of &optional and &rest in argument lists |
Date: | Thu, 10 Nov 2016 12:58:39 +0000 |
For example:
(funcall (lambda (&optional &rest &rest &optional x) (list x)) 'a)
=> ((a))
Obviously here the &rest keyword "wins", but I think that's overly
confusing. Such an argument list is most likely a programmer mistake,
and should signal an error to make the programmer aware of the mistake.
0001-Prevent-dubious-argument-lists.txt
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |