[Python-ideas] Is there a good reason to use * for multiplication?

Serhiy Storchaka storchaka at gmail.com
Sat Oct 13 10:33:13 CEST 2012


On 13.10.12 05:41, Steven D'Aprano wrote:
> If I were designing a language from scratch today, with full Unicode
> support
> from the beginning, I would support a rich set of operators possibly even
> including MIDDLE DOT and × MULTIPLICATION SIGN, and leave it up to the user
> to use them wisely or not at all.

But they are a different operators.

(1, 2, 3)·(6, 5, 4) = 28
(1, 2, 3)×(6, 5, 4) = (-7, 14, -7)





More information about the Python-ideas mailing list