JuliaStaging / JuliaStaging/JuliaVariables.jl
Scoping of quote expressions
Open
- Dominant language
- Julia
- Stars
- 28
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
```julia
julia> solve_from_local(quote
x = :(x + 1)
end)
quote
#= REPL[6]:2 =#
@x = $(Expr(:quote, :((@global +)(@x, 1))))
end
```
`:(x+1)` shouldn't be analysed. The things can be analysed in a quotation are `$` splices, e.g.:
```julia
x = :($x + 1) # now we can analyse the `x` in :($x + 1)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.