4 ms·
> 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 call
by Sohcahtoa82 5mo 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).
- zmmmmm 5mo agoonce you use any language that lets you fluently inline a multiline lambda / closure you can never use Python again without it constantly irritating you
- t43562 5mo agoI find programs with lots of anonymous functions to be bloody irritating so I think that's just another matter of personal preference.