3 ms·
Readability. If you're using the same name everywhere, then your code is really hard to understand for other devs: val = my_list.reduce(foobar) What is ev
by phailhaus 3y ago
Readability. If you're using the same name everywhere, then your code is really hard to understand for other devs:
val = my_list.reduce(foobar)
What is even going on here?
- cmcconomy 3y agoone option is to define your function inline, directly above the line where you would have liked to write the complex anonymous function. I guess if you are worried about namespace pollution you can 'del' the symbol afterward.