Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
netheril96
on May 29, 2020
|
parent
|
context
|
favorite
| on:
The PEPs of Python 3.9
It's wrong because naming is hard. When writing inline, it is possible that not having a name does not impact readability. When defining the function out of line, naming it casually may confuse readers.
bhargav
on May 29, 2020
[–]
When we use lambdas, don't we usual end up assigning them to variables? In those cases, your point about naming will still hold!
silveraxe93
on May 29, 2020
|
parent
[–]
Lambdas are assigned to function arguments/parameters. Pretty sure assigning a lambda to a variable is an anti-pattern.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: