emacs-devel
[Top][All Lists]
Advanced

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

Re: Why is FUNC in cl-callf not allowed to be an expression?


From: Michael Heerdegen
Subject: Re: Why is FUNC in cl-callf not allowed to be an expression?
Date: Tue, 21 May 2019 18:38:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Noam Postavsky <address@hidden> writes:

> > > >   (cl-callf (with (if flag #'1+ #'1-)) my-number)
>
> > OTOH, it probably wouldn't be good idea to complicate cl-callf if we
> > also want to add other stuff.
>
> Yeah, why not use something like
>
> (funcallf (if flag #'1+ #'1-) my-number)

FWIW, at least you can already write this as

  (cl-callf2 funcall (if flag #'1+ #'1-) my-number)

Michael.





reply via email to

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