What is the precedence between pipe and ternary operators?
The pipe operator has a higher precedence than the ternary operator (?:). For example, the expression first ? second : third | fourth
is parsed as first ? second : (third | fourth)
.
The pipe operator has a higher precedence than the ternary operator (?:). For example, the expression first ? second : third | fourth
is parsed as first ? second : (third | fourth)
.