3 ms·
Pushing for an extreme can be counterproductive. For example completely avoiding lambda may bring the equivalent of constant abuse. Compare list.map(v => v+
by t0suj4 5y ago
Pushing for an extreme can be counterproductive. For example completely avoiding lambda may bring the equivalent of constant abuse.
Compare
list.map(v => v+2)
To
list.map(add2)
In addition to other problems with functions, you now have a potential for combinatorial explosion doing it this way.
- taeric 5y agoCompletely agreed. Though, I suspect cases like that are less common. Small adjustments by constants aren't something I do often, at least. (That is, this is a bit of a straw man.)