-
Notifications
You must be signed in to change notification settings - Fork 463
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
Print :>
without wrapping parenthesis
#6254
Comments
The parsing of coercion is spread out in several places. Not completely clear how to capture where parens are necessary or not. |
After a little investigation, its not clear which one is preferable in this specific example. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Given the following example:
Playground link
When pretty-printing the code, the coercion expression will be wrapped with parentheses:
foo((v :> b))
.Expected behavior: It should print the expression the same way as it was defined; only preserve parentheses if the operation was originally wrapped in parentheses.
The text was updated successfully, but these errors were encountered: