Toward a conclusion for Python dictionary "addition"
Toward a conclusion for Python dictionary "addition"
Posted Jan 9, 2020 13:21 UTC (Thu) by mina86 (guest, #68442)Parent article: Toward a conclusion for Python dictionary "addition"
Is there an example of a type where pipe operator is not reflective (as in ‘x | y’ yields different result to ‘y | x’)? Preferring ‘|’ over ‘+’ seems strange to me as it would create an unnecessary precedence. Using plus wouldn’t create such a precedence and programmers are already used to addition not being reflective for all types.
