5 ms·
Then what is the point?
by PurpleRamen 3y ago
Then what is the point?
- phailhaus 3y agoReadability. 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.