4 ms·
Yet, if you look in functional programming code (e.g. Haskell, Scheme), you'll find many anonymous lambdas (that in python would be > 1 line). Why would good co
by rw 17y ago
Yet, if you look in functional programming code (e.g. Haskell, Scheme), you'll find many anonymous lambdas (that in python would be > 1 line). Why would good coders bother doing that?
- eru 17y agoIf something is small and enough to be anonymous, it's usually simply enough to be expressed without binding a variable. (See point-free style.)