On Sun, May 24, 2020 at 3:38 PM Ram Rachum <r...@rachum.com> wrote: > What's wrong with using @? If I understand correctly, it's used for matrix > multiplication, which is far enough from function composition to avoid > confusion. And it's slightly similar visually to a circle. >
The matrix multiplication PEP (https://www.python.org/dev/peps/pep-0465/) says: > During discussions of this PEP, a similar suggestion was made to define @ as a general purpose function composition operator, and this suffers from the same problem; functools.compose isn't even useful enough to exist. That particular sentiment seems to come from here: https://mail.python.org/archives/list/python-ideas@python.org/message/JQQ6IVDIXNYXDAZ7T6IRGOU6ESSCPHKE/ More generally, the discussion is easy to search for: https://mail.python.org/archives/search?mlist=python-ideas%40python.org&q=matrix+function+composition
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/GI5HW5OEW6WV4JSEZU6UYNIJR537RY6H/ Code of Conduct: http://python.org/psf/codeofconduct/