On Mon, Feb 15, 2021 at 5:28 PM Steven D'Aprano <st...@pearwood.info> wrote:
> In the first case, => will forever be fighting against the much stronger
> memory trace of >= (I think we can agree that comparisons will be more
> common than anonymous functions). People's muscle-memory will type >=
> when they want the arrow; people will wrongly read => as a comparison.
>

I've worked a lot with JS's arrow functions, and I've taught them to a
good number of students, and this is basically a non-issue.

In JS, the need for arrow functions is a lot stronger, as they
actually have different semantics to "function functions" (for want of
a better word). In Python, the need isn't as great, but there would be
some minor value in this syntax.

Overall I'm +0.1 on either => or ->, and have absolutely no push
either way which one is chosen.

ChrisA
_______________________________________________
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/IFAWXQF6FH3HLBHEWTSC4KTETTST2NMC/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to