[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 13:55:55 +0000 |
On Wed, May 6, 2020 at 1:02 PM Stefan Kangas <stefan@marxist.se> wrote:
> Pip Cet <pipcet@gmail.com> writes:
> > (apply FUNCTION ARGUMENT &rest ARGUMENTS), I guess. I missed it in the
> > first patch.
>
> Thanks.
>
> FWIW, I still think we should avoid changing the function signature if
> at all possible.
Is the function signature relevant for anything but eldoc?
> apply is fundamental to Lisp, and has been defined like this for a
> long time.
I don't know about that. Anything but the two-argument form of apply
strikes me as rather dialect-dependent, but I may be wrong.
> See the definition of "The Universal S-Function apply" in
> John McCarthy's paper: [1]
>
> apply[f;args] =eval[cons[f;appq[args]];NIL],
I must admit I don't know how appq is defined.
> Also note that it is still defined like this elsewhere:
I may be misreading your examples, but they seem to me to have
different signatures from the one hitherto used in Emacs.
> Scheme: (apply function argument-list)
Precisely two args, right?
> Common Lisp: apply function &rest args+ => result*
At least two args.
> Clojure: (apply f args)
Precisely two args again?
- bug#40968: 28.0.50; (apply nil), Stefan Kangas, 2020/05/05
- bug#40968: 28.0.50; (apply nil), Pip Cet, 2020/05/06
- bug#40968: 28.0.50; (apply nil), Stefan Kangas, 2020/05/06
- bug#40968: 28.0.50; (apply nil), Pip Cet, 2020/05/06
- bug#40968: 28.0.50; (apply nil), Stefan Kangas, 2020/05/06
- bug#40968: 28.0.50; (apply nil),
Pip Cet <=
- bug#40968: 28.0.50; (apply nil), Stefan Kangas, 2020/05/06
- bug#40968: 28.0.50; (apply nil), Pip Cet, 2020/05/06
- bug#40968: 28.0.50; (apply nil), Drew Adams, 2020/05/06
- bug#40968: 28.0.50; (apply nil), Eli Zaretskii, 2020/05/06
- bug#40968: 28.0.50; (apply nil), Pip Cet, 2020/05/06
- bug#40968: 28.0.50; (apply nil), Eli Zaretskii, 2020/05/06
- bug#40968: 28.0.50; (apply nil), Drew Adams, 2020/05/06
- bug#40968: 28.0.50; (apply nil), Noam Postavsky, 2020/05/06
- bug#40968: 28.0.50; (apply nil), Drew Adams, 2020/05/06
- bug#40968: 28.0.50; (apply nil), Pip Cet, 2020/05/06