-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
merge def var meta-data from the expression and the var-name #802
Conversation
This is still not the proper solution for defs that are defined by macros. Compare this in Clojure and bb: (defmacro foodef [sym & body]
`(do (def ~sym ~@body)))
(foodef x 1)
(prn (meta #'x)) To properly test this, I think it would be good to include the macro examples. |
Completed the PR here: Couldn't hurt to receive a post-hoc review. |
what does the |
I see. missing again...
What is |
@retrogradeorbit Yes! What SCI does now is that it remembers the top level location of a form that is analyzed. Also, when expanding a macro, the expanded form gets the locations of the unexpanded forms. These two combined:
This above is the case you covered.
e.g. wrap the expansion in a vector, the For top-level |
Another (maybe better) example is this one:
The |
Great information. Thankyou! |
Please answer the following questions and leave the below in as part of your PR.
I have read the developer documentation.
This PR corresponds to an issue with a clear problem statement.
This PR contains a test to prevent against future regressions
Fixes issue #801