-
Notifications
You must be signed in to change notification settings - Fork 4
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
Macros should work in bindings inside let-nom #1
Comments
Yes, thanks for the heads up.
It is difficult to do something about macros, because it is unclear, resp. different from macro to macro, which parts could be checked beforehand. E. g. in a I thought about just skipping macro forms, just checking their return values, but then it might be surprising that checking doesn't work inside in certain cases. This would then lead to bugs where you do not immediately see that something is not checked before being passed on. I now think the way forward would be to throw a better error message at macro expansion time, and provide macro replacements for e. g. Still a bit to think about… |
Not sure I quite follow. It just seems weird that for the |
I don't see how. Maybe one could use metadata on forms to finetune the checks. |
The following code fails to compile (syntax error):
It complains that
Can't take value of a macro: #'clojure.core/->
Funnily enough when using
let-nom>
it worksThe text was updated successfully, but these errors were encountered: