Re:Functools – The Power of Higher-Order Functions in Python
by mukesh610 on Friday July 09, 2021 @03:05AM
(#27781163)
IMO multi-line lambdas are unnecessary; they can't be easily documented or better maintained than a named function. If your anonymous function needs more than a statement it makes perfect sense to define it as a separate named function. Faster to find, document and maintain.
[ Parent
| on HN ]
Re:Functools – The Power of Higher-Order Functions in Python
by SketchySeaBeast on Friday July 09, 2021 @09:56AM
(#27783695)
Do you have the same thoughts regarding JavaScript?