On Mon, Feb 15, 2021 at 5:28 PM Steven D'Aprano <[email protected]> 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 -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/IFAWXQF6FH3HLBHEWTSC4KTETTST2NMC/ Code of Conduct: http://python.org/psf/codeofconduct/
