Patrick Dubroy
@dubroy
When you think about it, isn't this viewpoint kinda funny?

We think it's important that `1 + 2 * 3` means `1 + (2 × 3)`, but otoh we're fine writing things like

2 / 3
radius**2
2 * x

rather than 2 ÷ 3, radius², 2x.
Tweet image
Jul 8, 2024 · 7 · 3

Related: it's fun reading the Python Matrix-SIG archives from 1995 (which eventually led to NumPy), and one of the first topics that came up was whether * should mean matrix multiplication, or element-wise multiplication: mail.python.org/pipermail/matr…
Tweet image

https://twitter.com/dubroy/status/1810232546661196111 ∙ Archived on 2025-03-28.

← Twitter Archive: 2024