|
From: | Stefan Monnier |
Subject: | Re: Arbitrary function: find the number(s) of expected arguments |
Date: | Sat, 19 Mar 2016 15:52:45 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
> Patches to add func-arity to Emacs are welcome. Actually, I don't welcome them. I always resisted them, because I think that using func-arity is a bad idea. As mentioned to my reply in the corresponding thread, you're better off just making the call and catching the potential `wrong-number-of-arguments' signal. Stefan PS: Little quiz: what should be the func-arity of (lambda (&rest x) (apply #'car x))?
[Prev in Thread] | Current Thread | [Next in Thread] |