emacs-devel
[Top][All Lists]
Advanced

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

Re: Arbitrary function: find the number(s) of expected arguments


From: Philipp Stephani
Subject: Re: Arbitrary function: find the number(s) of expected arguments
Date: Sat, 19 Mar 2016 16:34:55 +0000



Eli Zaretskii <address@hidden> schrieb am Sa., 19. März 2016 um 17:33 Uhr:
> From: Philipp Stephani <address@hidden>
> Date: Sat, 19 Mar 2016 16:30:30 +0000
> Cc: address@hidden, address@hidden
>
>  No, that's not g's arity:
>
>  (g 10 202 30) => error -> "Wrong number of arguments"
>
> This cannot be detected without evaluating the function.

Are we discussing the usefulness of the function, or are we discussing
how best to implement it?

We are discussing for which cases it can be implemented. It can be implemented and would be useful for a wide range of functions, such as those defined with defun. It cannot be implemented for functions like g; that's just a limitation we have to live with. 

reply via email to

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