On 3/12/2012 12:27, Albert van der Horst wrote:
Interestingly in mathematics associative means that it doesn't matter
whether you use (a.b).c or a.(b.c).
Using xxx-associativity to indicate that it *does* matter is
a bit perverse, but the Perl people are not to blame if they use
a term in their usual sense.

You may see it this way:
Def1. An operator +:SxS->S is left-associative iff
  a+b+c = (a+b)+c for all a,b,c in S.
Def2. An operator +:SxS->S is right-associative iff
  a+b+c = a+(b+c) for all a,b,c in S.
Def3. An operator +:SxS->S is associative iff it is both left and right-associative.

Kiuhnm
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to