Hacker News new | past | comments | ask | show | jobs | submit login

It's wrong because naming is hard. When writing inline, it is possible that not having a name does not impact readability. When defining the function out of line, naming it casually may confuse readers.



When we use lambdas, don't we usual end up assigning them to variables? In those cases, your point about naming will still hold!


Lambdas are assigned to function arguments/parameters. Pretty sure assigning a lambda to a variable is an anti-pattern.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: