7 ms·
In Python without type annotation, what do you find about a lambda that is easier than a named function?
by dorfsmay 8y ago
In Python without type annotation, what do you find about a lambda that is easier than a named function?
- KirinDave 8y agoThe ability to move closures and to rely on simple lambda applications rather than ad hoc hierarchies or more complex annotations that map over the same decorator patterns anyways. That's the big irony. Python embraces some of the most complex, detail oriented aspects of function-first programming with decorators, but then throws away most of the payoff. It's like eating the peel of a banana and refusing to eat the interior.