Why Associativity is a Fundamental Property of Operators But Not that of Precedence Levels
问题 In any programming language textbooks, we are always told how each operator in that language has either left or right associativity. It seems that associativity is a fundamental property of any operator regardless of the number of operands it takes. It also seems to me that we can assign any associativity to any operator regardless of how we assign associativity to other operators. But why is it the case? Perhaps an example is better. Suppose I want to design a hypothetical programming