GNU bug report logs -
#40968
28.0.50; (apply nil)
Previous Next
Reported by: Pip Cet <pipcet <at> gmail.com>
Date: Wed, 29 Apr 2020 18:27:02 UTC
Severity: normal
Tags: fixed
Found in version 28.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> > (apply FUNCTION ARGUMENT &rest ARGUMENTS), I guess. I missed it in
> > the first patch.
>
> FWIW, I still think we should avoid changing the function signature if
> at all possible.
>
> apply is fundamental to Lisp, and has been defined like this for a
> long time. See the definition of "The Universal S-Function apply" in
> John McCarthy's paper: [1]
>
> apply[f;args] =eval[cons[f;appq[args]];NIL],
>
> Also note that it is still defined like this elsewhere:
>
> Scheme: (apply function argument-list)
> Common Lisp: apply function &rest args+ => result*
> Clojure: (apply f args)
Hm. CLTL2 shows the signature for Common Lisp as this:
apply function arg &rest more-args
^^^
https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node81.html
On the other hand the CL HyperSpec agrees with you:
apply function &rest args+ => result*
http://www.lispworks.com/documentation/HyperSpec/Body/f_apply.htm
Dunno what the truth is. I've always considered
CLTL the language spec. But that may be wrong.
What's the use case for (apply FUN)?
This bug report was last modified 4 years and 239 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.