Nit, the relevant property you're looking for is associative (you can omit parantheses), not commutative (you can swap left and right); there are some operations that are the latter but not the former, such as the average:
avg(a, b) = avg(b, a)
but avg(avg(a, b), c) != avg(a, avg(b, c))