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

I completely agree. Whenever I praise recursion there's always some person that's shouts "Recursion is just looping!" These people completely miss how recursion changes how you codify problems. You get to break the problem down into a sub-problem which leads to much more expressive code. Combine recursion with pattern matching for extra spicy solutions.


Tail self-recursion and mutual cyclic tail recursion are equivalent to looping, but there are other forms of recursion.




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

Search: