-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Handling of qualified operations #234
Comments
Or really, why are we even quoting? Couldn't we just store the functions in the constant table directly? It seems like functions/types actually hash reasonably well. |
OK, I see the problem: rewriting of Exprs would break with this approach. How many things downstream rely on rewriting Exprs vs. rewriting TermInterface stuff? |
Ah, I didn't carefully read |
@olynch They are both TermInterface. This was already discussed a while ago and it took us ages with the Symbolics.jl team to find a decent TermInterface that supported both quoted and unquoted operations :) |
This is me adding my two cents about qualified operations, as related to #209.
I think that the behavior of
maybe_quote_operation
in Metatheory.jl is confusing, and breaks lexical scoping.I would prefer to have something like:
Similarly, I think that the @rule macro should work differently. Rather than fully constructing the rule at macro-expansion time, the macro
should expand to something like
Thus, the identity of
+
is given by whatever it is bound to in the current lexical scope, rather than simply treating it as:(+)
. This would be more in line with how SymbolicUtils works, and it would naturally solve #209.The text was updated successfully, but these errors were encountered: