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

I interpret 'Avoid closures' as just don't define a function within your function. Private functions are simply functions that haven't been exported and aren't really closures (if we're talking about using a module pattern, at least).

Excessive closures can lead to memory leaks. Anonymous closures are a PITA when debugging.



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

Search: