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

Underscore replacement should recurse into quasiquote #7

Open
c42f opened this issue Apr 27, 2020 · 0 comments
Open

Underscore replacement should recurse into quasiquote #7

c42f opened this issue Apr 27, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@c42f
Copy link
Owner

c42f commented Apr 27, 2020

Expr(:quote) is actually a quasiquote, so the following should be equivalent:

julia> map(i->:(a[$i]), 1:4)
4-element Array{Expr,1}:
 :(a[1])
 :(a[2])
 :(a[3])
 :(a[4])

julia> @_ map(:(a[$_]), 1:4)
ERROR: syntax: all-underscore identifier used as rvalue
Stacktrace:
 [1] top-level scope at REPL[2]:1
@c42f c42f added the bug Something isn't working label Apr 27, 2020
melonedo added a commit to melonedo/Underscores.jl that referenced this issue Nov 12, 2021
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