Why not real anonymous functions?

We should trust people to use language features thoughtfully and know when certain constructs are appropriate and when they are not.

Agreed. A similar argument was used against the walrus operator, and four years later since its introduction I haven’t seen it being abused too much in the code bases I’ve seen. I would assume anonymous functions would probably experience the same treatment. The convention to write readable code runs too deep with experienced Python developers at this point.

2 Likes