JuliaStaging / JuliaStaging/JuliaVariables.jl

Can `Var` have an `id` field?

Open
#28 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
28
Forks
5
PR merge metrics
No merged PRs in 30d

Description

For code rewriting, it can be really useful to have more to distinguish a variable than just its name. For example, we might want to do things like "rename all occurrences of this `x` to `y`" or even "convert this AST to SSA style".

This could be very easy if JuliaVariables could be extended so `Var` has an additional `id` field. Do you have how difficult that would be to add? If it would be a major rewrite I could try to find other ways of getting to this.

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.