-
Notifications
You must be signed in to change notification settings - Fork 62
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
Term printer error #1147
Comments
This is probably just a mistake in the use of precedence levels in the saw-core pretty printer. |
I occasionally see this in the let-binding list, but it seems hard to reproduce in a small example. Seen recently, in a large formula x@44 = x@37,x@38,x@23 Not too bad here, but in another case there are line breaks coupled with an ill-chosen left margin:
To be sure, though, putting the parentheses in and indenting properly will do little to improve the readability of that! |
I bumped into this recently. I think the problem is here: There should probably be a precendence level between |
This lets us print pair values using infix ',' with parens in the right places. Fixes #1147.
This lets us print pair values using infix ',' with parens in the right places. Fixes #1147.
This lets us print pair values using infix ',' with parens in the right places. Fixes #1147.
It is somewhat perplexing that these two expressions, with different types and structure, print almost exactly the same:
What happened to the parentheses around the tuple?
A very careful reader could check for whitespace after a comma to distinguish these two, but that's an easily missed distinction.
The text was updated successfully, but these errors were encountered: