2 ms·
I've noticed a pattern in among python developers where the faux pas of assigning a lambda is used to signify "I'm going to use this function in a vaguely funct
by siddboots 8y ago
I've noticed a pattern in among python developers where the faux pas of assigning a lambda is used to signify "I'm going to use this function in a vaguely functional programming manner". For example, by passing it into map, or filter, or sorted.
For this reason, I don't really mind it. It's a sort of cue to the reader about the style of programming that will follow.
- BerislavLopac 8y agoI many of those cases people use lambda when a partial would be a better fit.