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

Catch function objects embedded in code #224

Open
MichaelBlume opened this issue Jul 5, 2017 · 0 comments
Open

Catch function objects embedded in code #224

MichaelBlume opened this issue Jul 5, 2017 · 0 comments

Comments

@MichaelBlume
Copy link

It's not that hard when writing a macro to accidentally wind up generating code that has an actual function object where there should be an s-expression. Badly contrived example:

(defmacro add2 [x]
  `(~+ ~x 2))

This will work even though the author probably should have written

(defmacro add2 [x]
  `(+ ~x 2))

It'd be nice to have a clear warning about this.

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

No branches or pull requests

1 participant