Hacker News new | ask | show | jobs
by maxbond 1272 days ago
You can define a function anywhere, including in the scope of another function. So it doesn't need to be floating somewhere far away from where it's used. (This is the idiomatic way to write decorators, for example.)