Y
Hacker News
new
|
ask
|
show
|
jobs
by
danthejam
3667 days ago
Local functions look like they follow Python's reasons for avoiding anonymous functions in favor of nested functions.
It's a nice touch you can define the function at the end, looks clearer.
1 comments
platz
3667 days ago
The only benefit over anonymos fns i see is avoiding allocation. Maybe there are attributes you cant easily put on anon fns as well
link