4 ms·
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 lin
by netheril96 6y ago
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.
- bhargav 6y agoWhen we use lambdas, don't we usual end up assigning them to variables? In those cases, your point about naming will still hold!
- silveraxe93 6y agoLambdas are assigned to function arguments/parameters. Pretty sure assigning a lambda to a variable is an anti-pattern.