Two-argument form of Information - #1881
Open
rocky wants to merge 12 commits into
Open
Conversation
rocky
marked this pull request as draft
July 30, 2026 01:46
rocky
force-pushed
the
Information-as-structure
branch
2 times, most recently
from
July 30, 2026 11:20
1ef6c34 to
41eeed6
Compare
This paves the way for more builtins to be included in a more scalable way.
Keep old functionality but add some new one in a better framework.
Add more definition "eval" routines, and (re)use those.
* Align "Information" attributes with WL * Allow a string argument in DownValues * Revise DownValues tests and split off * Handle all xxxValues properties in 2-arg Information
rocky
force-pushed
the
Information-as-structure
branch
from
July 30, 2026 16:42
1fc9da6 to
d83ddab
Compare
UpValues moved to properites. Allows a string parameter now as well. DRY eval_xxxValue code.
rocky
force-pushed
the
Information-as-structure
branch
from
July 30, 2026 16:48
d83ddab to
97da028
Compare
rocky
marked this pull request as ready for review
July 30, 2026 16:48
Member
Author
|
This is far from complete for just the 2-arg form of So let's arbitrarily break things up here. And there will be future PRs to finish the 2-arg form, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mathics.core.properties.UpvaluesandDownValuesmoved there as well.Information.Attributes[Information]is now WMA compliantDownValuesandUpValues(more xxxValues to come).This is in preparation for revising the one-argument form.