Skip to content
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

fix(OperatorNode): Correct parenthesization in some cases of .toString() #2403

Closed

Conversation

gwhitney
Copy link
Collaborator

@gwhitney gwhitney commented Feb 3, 2022

If the first operand of an implicit multiplication is a fraction in
which either the numerator or denominator has a unary operator, that
operand must be parenthesized, because of the rules for interpreting
implicit multiplication in the parser. This commit checks for that
condition and inserts the parentheses.

Resolves #1431.

  If the first operand of an implicit multiplication is a fraction in
  which either the numerator or denominator has a unary operator, that
  operand must be parenthesized, because of the rules for interpreting
  implicit multiplication in the parser. This commit checks for that
  condition and inserts the parentheses.

  Resolves josdejong#1431.
@gwhitney
Copy link
Collaborator Author

gwhitney commented Feb 7, 2022

The preferred tactic for rectifying this situation appears to have changed to resolving #2370. Closing.

@gwhitney gwhitney closed this Feb 7, 2022
@josdejong
Copy link
Owner

👍 thanks anyway for your work

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.

Negated fraction multiplied implicitly not stringified correctly
2 participants