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

syntax-quote + unquote bindings failure #156

Closed
borkdude opened this issue Nov 18, 2019 · 0 comments
Closed

syntax-quote + unquote bindings failure #156

borkdude opened this issue Nov 18, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@borkdude
Copy link
Collaborator

borkdude commented Nov 18, 2019

This works:

$ clj -e "\`~(let [x 1] x)"
1

But this doesn't:

$ lein run "\`~(let [x 1] x)"

In the branch macro-defn-fix this now works:

borkdude@MBP2019 ~/Dropbox/dev/clojure/babashka/sci (macro-defn-fix) $ lein run "\`~(let [x 1] x)"
1
borkdude@MBP2019 ~/Dropbox/dev/clojure/babashka/sci (macro-defn-fix) $ lein run "\`[~@(let [x 1] [x x])]"
[1 1]
$ lein run "\`[~@(for [x [1 2 3]] x)]"
[1 2 3]
@borkdude borkdude added the bug Something isn't working label Nov 18, 2019
@borkdude borkdude changed the title macro with defn fails macro with for + defn fails Nov 18, 2019
@borkdude borkdude changed the title macro with for + defn fails syntax-quote + unquote with for + defn fails Nov 18, 2019
@borkdude borkdude changed the title syntax-quote + unquote with for + defn fails syntax-quote + unquote failure Nov 18, 2019
@borkdude borkdude changed the title syntax-quote + unquote failure syntax-quote + unquote for failure Nov 18, 2019
@borkdude borkdude changed the title syntax-quote + unquote for failure syntax-quote + unquote bindings failure Nov 18, 2019
borkdude added a commit that referenced this issue Nov 19, 2019
borkdude added a commit that referenced this issue Nov 19, 2019
borkdude added a commit to babashka/babashka that referenced this issue Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant