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 21:39:07 +0200

> From: Michael Heerdegen <address@hidden>
> Date: Sat, 19 Mar 2016 20:32:25 +0100
> 
> So, to the question "can I call function X with that many args", the
> answer can be "maybe".  In that case, the situation is not better than
> now.  Since you know the answer not before run-time, this doesn't solve
> the problem in the bug report, because you still have to write
> alternative code for the "maybe" case - every time.
> 
> Don't take me wrong: this patch can be useful, e.g. for generating help
> pages.  But IMO it isn't useful for coding.  On the contrary, I think
> advertising `func-arity' to the user with this name will lead to a lot
> of erroneous code.

I guess you won't be using this, then.  And neither will I, frankly,
as I never had the need for such a function.  But if someone does, I
see no reason not to provide it.



reply via email to

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