2 ms·
What is naked recursion?
by herdrick 18y ago
What is naked recursion?
- raganwald 18y agoFunctions/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-23/recursive_combinators.md#readme http://github.com/raganwald/homoiconic/blob/master/2008-11-2...
- herdrick 18y agoAh, 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 http://news.ycombinator.com/item?id=555714