Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is a good point, and nicely matches a pattern I find myself using in JS where I just define the sub methods inline in the larger method.

You get the niceties of a name for the folks who want it, but the code is still grouped nicely and it's easy to walk through the whole operation.

I see this much less often in languages where scoping is less flexible though.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: