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

What is naked recursion?


Functions/methods that call themselves, as opposed to having a higher-level function that takes a function as an argument and does something recursive with it.

http://github.com/raganwald/homoiconic/blob/master/2008-11-2...


Ah, so naked recursion is recursion.

EDIT: I was going to criticize your idea that there is anything lacking in "naked recursion". It's a really powerful technique and in fact I just wrote a recursive function for production code an hour ago. Comment continued here: http://news.ycombinator.com/item?id=555714




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

Search: