Re:Stop writing lambda expressions in Python
by a-nikolaev on Thursday September 27, 2018 @06:37PM
(#18089467)
I agree with you, I felt the same when reading the article. It feels that Python's design is deeply at fault here, it is actively harming people's perception of anonymous functions, which is the opposite of what a supposedly educational multi-paradigm-capable language should be doing.
[ Parent
| on HN ]
Re:Stop writing lambda expressions in Python
by eesmith on Thursday September 27, 2018 @06:44PM
(#18089522)
It also doesn't have tail-recursion or macros. There are many who also regard that lack as a deep design flaw.
There never was a goal in Python development to support all programming paradigms.
How do you distinguish between "design flaw" and "different design goal than what you want"?
Re:Stop writing lambda expressions in Python
by a-nikolaev on Thursday September 27, 2018 @06:54PM
(#18089594)
I think, it was an example of intentional hostile design (say, see this video https://www.youtube.com/watch?v=NWZLB8CyPbM for what I mean). All, seemingly for the sake of that "only-one-way-to-do-things" goal.
EDIT: (Van Rossum's own explanation of why he thinks lambda's design is okay: https://www.artima.com/weblogs/viewpost.jsp?thread=147358 )
Re:Stop writing lambda expressions in Python
by eesmith on Friday September 28, 2018 @01:13AM
(#18091243)
Do you have any evidence for your hypothesis about hostile design?
The phrase, by the way, is "one obvious way".
Re:Stop writing lambda expressions in Python
by a-nikolaev on Friday September 28, 2018 @09:42AM
(#18093244)
Guido van Rossum said that many times that he does not like functional primitives. It is pretty well documented in his own writing that he had no intention of making functional programming very convenient in the language.