Why operators are useful

This is something I posted on python-ideas, but I think it’s interesting to a wider audience.There’s been a lot of discussion recently about an operator to merge two dicts.It prompted me to think about the reason (some) people like operators, and a discussion I had with my mentor Lambert Meertens over 30 years ago came to mind.For mathematicians, operators are essential to how they think. Take a simple operation like adding two numbers, and try exploring some of its behavior.    add(x, y) == add(y, x)    (1)Equation (1) expresses the law that addition is commutative. It’s usually written using an operator,

Continue reading the original article