Skip to content

Commit 94f2bb0

Browse files
mmaterarocky
authored andcommitted
adding comment
1 parent 889e9fc commit 94f2bb0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

mathics/builtin/layout.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,15 @@ def eval_makeboxes_infix(
4747
precedence_value: Optional[int] = None,
4848
grouping: Optional[str] = None,
4949
):
50-
"""Implements MakeBoxes[Infix[...]]"""
50+
"""Implements MakeBoxes[Infix[...]]."""
51+
52+
# Actually, this function implements one part of the evaluation:
53+
# the one that should be done at the "format" level. In that point,
54+
# the operators are processed to add spaces and use the right
55+
# encoding. This should be done at the level of the formatter, not
56+
# in the "MakeBoxes" step.
57+
# Then, the true implementation is done
58+
# in ```mathics.eval.makeboxes.make_boxes_infix```.
5159

5260
## FIXME: this should go into a some formatter.
5361
def format_operator(operator) -> Union[String, BaseElement]:

0 commit comments

Comments
 (0)