Skip to content

Conversation

@mmatera
Copy link
Contributor

@mmatera mmatera commented Jan 25, 2026

Trailing changes: rename boxed property on several BoxExpression builtins to boxes

mmatera and others added 30 commits January 19, 2026 14:59
Co-authored-by: R. Bernstein <rocky@users.noreply.github.com>
Co-authored-by: R. Bernstein <rocky@users.noreply.github.com>
…mbols' into move_makeboxes_rules_to_their_symbols
This PR does the largest step so far in making the formatting process in
Mathics compatible with the one in WMA.
The main change is in the sequence of formatting. Now, `MakeBoxes` rules
are not `Downvalues`, of the `MakeBoxes` symbol, but are stored as
`FormatValues` of the corresponding symbols. Rules in `MakeBoxes` are
now restricted to call the `format_element` function, and return a Box
expression that represents its input. Hence, in loading definitions,
`MakeBoxes` is not a special symbol anymore.
Also, the default implementation for formatting basic elements like
symbols, expressions, and lists does not pass through the evaluation
process until explicit rules are set by the user.
@rocky
Copy link
Member

rocky commented Jan 25, 2026

LGTM

@mmatera mmatera merged commit c322d6a into master Jan 26, 2026
21 checks passed
@mmatera mmatera deleted the makeboxes_overhault2 branch January 26, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants