4 ms·
In my opinion, requiring commutativity from a +-operator is maybe too much. Associativity and a neutral element seem to be enough (i.e. forming a monoid).
by wozer 8y ago
In my opinion, requiring commutativity from a +-operator is maybe too much. Associativity and a neutral element seem to be enough (i.e. forming a monoid).
- maweki 8y agoI think that just shows that the python language and some others la k another operator and not that + should not be commutative.
- naniwaduni 8y agoIt seems like + normally connotes a commutative operator; for general monoid operators are normally notated as if they were multiplications.
- enriquto 8y ago> requiring commutativity from a +-operator is maybe too much The + operator is the only one that can be realistically required to be commutative. All other operators need not. If we are to have any commutative operator, it should definitely be +.