-
-
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
Unevaluated #122
Comments
This feels more of the kind of confusion we've been having. A Lisp or WL Symbol is unique. In other words the name "a" is unique. What is meant by Often people shorten "symbolic variable" to "symbol". Possibly Mathics' Symbol class should be renamed to Unfortunately the name "Symbol" has been used to mean both the a Symbol name (but |
@rocky, in WL there are no "symbolic variables" (in the sense of something that has at some point a value), just |
@mmatera By "symbolic variable" I mean unbound variable. |
An unbound symbol is what Lisp calls a Symbol. And saying a Symbol is unbound implies that a Symbol can be bound. I suspect that this is the missing concept, variable binding, in Mathics. |
In WMA, bindings are given through the
In that case, how this would work here using that concept? |
the getter function for variable "a" would be a lambda function that returns 1 if x is greater than 0. Is this how #628 works? |
Nop. It was just to narrow the idea about what would be here a "bounded variable". #628 avoids to monkey patch a symbol by changing the expression Otherwise, just keep this here as a draft, like several other PRs, until we have a clearer picture, and then check against the tests a fix from another approach. The effort here was put in localizing the change just in the method we need to fix in order to get the right behaviour. |
Yes, let's keep this as a draft. |
In #58 I tried to fix this issue:
In WMA
In Mathics
This happens because as now Symbols are singletons, the old mechanism of setting a property does not work anymore. In #58, I tried to fix this using a table. However, this does not work in general, if F has the attributes
Orderless
orFlat
, because the order is lost.The text was updated successfully, but these errors were encountered: