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

That reasoning leads me to conclude the function should be short lived or the memory in use by all child functions, rather than it has to be a leaf function?


yeah. Leaf is a good rule of thumb, but if you need a little helper to do something it's generally fine.

you really do need confidence the little helper can be fully inlined. if the helper is out of your control, and someone greatly expands its responsibility, it can suck.

So, yeah, effectively a leaf.




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

Search: