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

Yeah, in JavaScript I'll pretty much only write nested functions to use them as scope control, and usually I don't intend for that function to be callable elsewhere. Otherwise, I prefer writing functions that are as "pure" as possible, even if that means having to pass in many parameters each call.


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

Search: