>> 1 | 2 ^ 3 // or this? > > > No. Both of those are bitwise operations. They are often used together. They > have a refined relative precedence in Swift that makes sense.
I have no idea what the relative precedence of those operators is in Swift, C, or any other language, and thinking about it now, no relative precedence seems sensible or obvious to me. Those operators (and bitwise-&) are excellent examples of operators that should require parentheses. _______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
