|
|
|
|
|
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). |
|