3 ms·
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 func
by danthejam 10y 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.
- platz 10y agoThe only benefit over anonymos fns i see is avoiding allocation. Maybe there are attributes you cant easily put on anon fns as well