JuliaStaging / JuliaStaging/JuliaVariables.jl

Scoping of quote expressions

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.