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

Why not do the reverse, and declare the inner functions before?


coffeescript forces you to do that, and I do use it that way sometimes in CS.

I don't do it as much as i would with plain js, because the function definition feels less awkward, but I do still prefer named functions over anonymous ones. even if the name only exists in the local scope.




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

Search: