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

Recursion can be a good fit for anything that's using a naturally-recursive process: for instance, when processing files in a directory along with all the files in subdirectories.

Stack limits may or may not be a concern, depending on the application. In the case of directories, if you've got them nested 10k+ deep you've got other problems.



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

Search: