2 ms·
The author uses this as an argument against lambdas: > lambda expressions are an odd and unfamiliar syntax to many Python programmers Well these python progra
by swalladge 8y ago
The author uses this as an argument against lambdas:
> lambda expressions are an odd and unfamiliar syntax to many Python programmers
Well these python programmers now have an opportunity to learn this unfamiliar syntax. You don't avoid using parts of a programming language just because it's unfamiliar! To new Python programmers, a lot of the syntax is unfamiliar at first, especially if coming from a curly-brace language or new to programming in general.
While I like many of the ideas in the article (especially the use of standard library functions that already do what your lambda was trying to do), it seems to make some cases against using lambda where the justification isn't entirely valid. :/