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

One example would be in a parser, as various parsing functions would be invoked recursively until end of input, or until some non-matching input is encountered. In pretty much any scenario where you would use recursive functions, it is quite common to have mutual recursion between multiple functions. Not always of course, which is where the tail call elimination optimization is typically applied, but not being able to freely use mutual recursion to arbitrary depth turns out to be quite an annoying limitation.


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

Search: