Made more difficult by the fact Guido intentionally gimped lambdas
It’s ugly, but not really abusing edge cases of Python’s lambdas or anything. The techniques in this article are pretty common in computer generated code.
See also: Snake game in a single line of python
It’s funny, because reading this code reminded me of how JS modularity used to be done.
Not in single lines, but with a lot of passing in deps explicitly like this.
[Comment removed by author]
On the contrary, it does not explain how to avoid them, but how to abuse them in ways you should NEVER use.
Yep, I misunderstood the title in the same way but after reading the “article” it actually turned out to be very sensible. Maybe a bit click-baity title.
Perhaps should be editorialized a tiny bit to say “How NOT to use lambdas”?
Did you read the article?