Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lang spec: clarify precedence of binary bitwise ops (#25982)
[contributed by @milthorpe, reviewed by @mppf] The language spec section on precedence includes conflicting statements that 'We were tempted to diverge from the C precedence rules for the binary bitwise operators ... However, ... we felt it unwise to stray from the pack.' and 'In contrast to C, we give bitwise operations a higher precedence than binary addition/subtraction and comparison operators.' The second statement is correct; Chapel does indeed stray from the pack by using a different precedence order than C. This commit aims to clarify the situation.
- Loading branch information