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: Davis Herring
Subject: Re: Arbitrary function: find the number(s) of expected arguments
Date: Tue, 15 Mar 2016 16:45:00 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

This way `my-foo' automagically accepts callbacks that expect one argument
(as in initial form), as well as those that want two arguments.

What if your existing clients might have

(defun paul-callback (computed-data &optional cached)
  ...)

where they make calls to `paul-callback' themselves with the extra argument? It's fair to call this "abstruse" (maybe most/all clients just use a lambda), but it might also make you think about providing another callback interface.

Davis

--
This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.



reply via email to

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