emacs-devel
[Top][All Lists]
Advanced

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

Re: Can the byte-compiler check whether functions passed by name are def


From: Sebastian Wiesner
Subject: Re: Can the byte-compiler check whether functions passed by name are defined?
Date: Wed, 31 Jul 2013 20:01:17 +0200

2013/7/31 Stefan Monnier <address@hidden>:
>> 1. Has to be done, though maybe through a macro, for every higher-order
>> function.
>
> Note that macroexp.el already has special handling for the main
> higher-order functions (to warn about '(lambda ...)).  So it could be
> implemented there.

I presume the list of “main higher-order” functions is hard-coded
then, isn't it?

Is there a symbol property or "declare" form to mark specific
arguments as function arguments, to have the same warnings for higher
order functions from 3rd party libraries, too?  Similar to how
"docstring" arguments for macros are handled?



reply via email to

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