by tremon · 6y ago · 0 comments
A symbol's property depend on the operation, the multiplication symbol for example is commutative in some cases and not in others.
But this convention is not at all respected in programming (e.g. + for string concatenation in many languages) so I have to admit that it's pretty irrelevant.
>>> [1,2,3] + [4,5,6]
[1, 2, 3, 4, 5, 6]
>>> [4,5,6] + [1,2,3]
[4, 5, 6, 1, 2, 3]
In dictionaries it would behave differently as well (duplicated keys, etc.)