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 wrapping around power operators. #195

Merged
merged 1 commit into from
Nov 21, 2023
Merged

Fix wrapping around power operators. #195

merged 1 commit into from
Nov 21, 2023

Conversation

odashi
Copy link
Collaborator

@odashi odashi commented Nov 18, 2023

Overview

This PR changes the wrapping behavior around function calls with pow.

Details

Due to its visual ambiguity, the power operator should be always wrapped by brackets if it appears in the unary function.

Before:
a

After:
無題

References

Blocked by

@odashi
Copy link
Collaborator Author

odashi commented Nov 18, 2023

@tesknight @xiziqiao Thanks for making very helpful conversation on #189 !
Please take a look at this change and put comments if you found something wrong.

@odashi odashi merged commit 0cba4c9 into main Nov 21, 2023
12 checks passed
@odashi odashi deleted the wrap-pow branch November 21, 2023 05:12
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.

Counterintuitive (wrong?) parenthesis when combining exp() and powers
2 participants