bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#40968: 28.0.50; (apply nil)


From: Pip Cet
Subject: bug#40968: 28.0.50; (apply nil)
Date: Wed, 6 May 2020 19:21:54 +0000

On Wed, May 6, 2020 at 7:17 PM Drew Adams <drew.adams@oracle.com> wrote:
> And if Elisp follows that (which I think it should,
> unless someone can present a good use case for just
> (apply FUNCTION)), then it should raise an error if
> there are not at least two args.

Note that single-argument apply in current Elisp is not (apply
FUNCTION) but (apply LIST-OF-FUNCTION-PLUS-ARGS).

(apply '+) is an error.
(apply '(+)) is 0.

That's why the problem with (apply nil) arose.





reply via email to

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