-
Notifications
You must be signed in to change notification settings - Fork 6
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
Store variable images globally #31
Comments
Agreed. This is a window into the major design flaw that currently exists with image storage, where variable images are stored only on each specific instance in the term tree. This leads to a number of confusing behaviors, especially in the context of displaying: julia> x1 = Variable(:x, TypeSet(Int));
x2 = Variable(:x, TypeSet(String));
julia> @term $x2 ^ (x + $x1)
@term(x ^ (x + x))
julia> x1
@term(x)
julia> x2
@term(x)
julia> x1 == x2
false Since each term should have exactly one interpretation of what image set a variable is in, this is something we should definitely have. In an upcoming iteration of As far as visual representation goes, it might be nice to use a |
I don't have a good handle on how your term objects work, but perhaps one solution would be to have a central |
Yep, that's the goal! (But maybe the
|
In the examples we have:
It'd be nice if one could instead just declare that
x
andy
are integers and then not have to worry about interpolating later.The text was updated successfully, but these errors were encountered: