On Tue, Feb 23, 2021 at 11:27:12AM +0100, Stéfane Fermigier wrote:

> Also: I know there are several modern computer languages that use arrows to
> represent anonymous functions (JS, Kotlin, Scala...).

Javascript: first release was 1995, making it 25 years old. It's older 
than most Javascript programmers.

Kotlin is only 9 years old. But Scala is 17 years old.

(By the way, Julia calls the -> arrow "the stab operator". I think 
that's amusing.)

Python has a long history of taking inspiration from other languages, 
but we've had anonymous functions for longer than Javascript has 
existed. This proposed arrow function would just be an alternative 
spelling for the same thing. It adds no more power, and no more 
expressiveness to the language.

It would be just one more thing to learn, one more decision to make 
("lambda or arrow?"), one more question to be asked a thousand times 
("what's the difference between lambda and arrow?").


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

Reply via email to