Hacker News new | ask | show | jobs
by Sohcahtoa82 34 days ago
> lambdas having pretty wild constraints (only one line??)

I will never understand why people are upset about this.

You HAVE multi-line lambdas. They're called functions.

Yeah, I know you want a function that's only used once to be able to be defined in-line, but tbh I've always found that syntax to be pretty ugly, especially once you're passing two functions to a single call, or have additional parameters AFTER the function (I'm looking at you, setTimeout/setInterval).

1 comments

once you use any language that lets you fluently inline a multiline lambda / closure you can never use Python again without it constantly irritating you
I find programs with lots of anonymous functions to be bloody irritating so I think that's just another matter of personal preference.