Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extension for emacs-deferred #170

Open
gonewest818 opened this issue Mar 8, 2020 · 2 comments
Open

extension for emacs-deferred #170

gonewest818 opened this issue Mar 8, 2020 · 2 comments

Comments

@gonewest818
Copy link

Thank you all for your impressive and valuable work here!

The library emacs-deferred introduces macros to express deferred chains of asynchronous tasks. The deferred:$ macro uses the anaphoric it, which it appears requires further explanation for the static analyzer.

Additionally, the author of the library designed it such that, in common usage, people will be writing lambda forms that trigger the notice "You can eta convert the lambda form and use the function directly". https://github.com/kiwanami/emacs-deferred#basic-usage

@Fuco1
Copy link
Member

Fuco1 commented Mar 9, 2020

None of the examples should trigger that notice. It should only be triggered when the function can be reduced:

(lambda (x) (stringp x)) 

is the same as

#'stringp

but

(lambda (x) (message "foo bar %s" x))

can not be reduced in such a way (x is not a direct argument).

Do you have a repro case?

@gonewest818
Copy link
Author

gonewest818 commented Mar 9, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants