2 ms·
One could argue: given that so much useful software has been written with Python after so many years without anonymous functions (beyond lambda expressions), pe
by pixelmonkey 3y ago
One could argue: given that so much useful software has been written with Python after so many years without anonymous functions (beyond lambda expressions), perhaps GvR had some wisdom in never upgrading the lambda expression beyond single-line expressions.[1] It does mean that Python programs tend to be more procedural / imperative / object-oriented in style rather than functional, but maybe that's not such a bad thing. You can still write some nice quasi-functional code that is quite readable.[2] And I say this as someone who has a lot of fun playing with functional programming, and even once wrote a blog post (based on a technical talk) comparing Python and Clojure.[3]
[1]: https://python-history.blogspot.com/2009/04/origins-of-pythons-functional-features.html https://python-history.blogspot.com/2009/04/origins-of-pytho...
[2]: https://github.com/amontalenti/elements-of-python-style?tab=readme-ov-file#paradigms-and-patterns https://github.com/amontalenti/elements-of-python-style?tab=...
[3]: https://amontalenti.com/2014/11/02/clojonic https://amontalenti.com/2014/11/02/clojonic