Hacker News new | ask | show | jobs
by StavrosK 4765 days ago
In all my Python years, I have never needed to write a long anonymous function. I consider it a bit of a code smell.

This isn't to say it's wrong to do in JS, just that the patterns in Python are different so you don't use this in practice.

1 comments

I have never needed to write a long anonymous function.

So two line of code is long now?

Yes, as opposed to "short", i.e. a lambda. I'm sorry if my terminology offends you.