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: Eli Zaretskii
Subject: Re: Arbitrary function: find the number(s) of expected arguments
Date: Sat, 19 Mar 2016 18:24:03 +0200

> From: Michael Heerdegen <address@hidden>
> Date: Sat, 19 Mar 2016 16:57:59 +0100
> 
> So what should `function-arity' return?  The actual arity of the
> function?  An arity that takes information about some known kinds of
> wrappers into account?

It should returns information about the number of arguments with which
the function can be called right after the call to function-arity.

> No matter how you do it: the result will never give you a clear answer.

I disagree with this conclusion.  The fact is that the Emacs Lisp
interpreter does know how to produce a clear answer.

> Even if the user understands what he is doing: if `function-arity' can't
> answer the question whether a certain number of arguments is allowed, it
> is of not much value.

I think it can, and it will be.



reply via email to

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