Clarify operator precedence description and table #4031
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR clarifies the operator precedence table (as discussed in #4029) and clarifies/expands the accompanying discussion of operator precedence and associativity.
This PR makes the following changes:
'non', 'chain', and 'list'. These single-letter abbreviations were used in S03, but are not currently used in elsewhere in Raku/Rakudo/the docs other than in a table in
language/functions
.language/functions
table.!
to§
to avoid confusion withprefix:<!>
.assoc
is implemented for unary ops.So, as I guess I should expect by now, a seemingly simple doc update grew into a more significant change than I expected, led me to realize I didn't understand something as well as I thought, and led me into an edge case that triggers a Raku bug! But, on the other hand, it also put me on the path to solving that bug – and it's one that's been around since 2014, so at least there's that 😁