News for hackers. Stuff that matters.
Re:Logic Puzzle: The Joy of Recursion by codr7 on Friday April 19, 2019 @09:42PM (#19704338)
I was confronted with recursion early on, but didn't really see the point outside of tree/graph traversals. It just didn't seem worth the effort given lousy performance and constant risk of stack overflow.

Then I started writing Lisp, and the &rest is history.

The cool thing about optimized tail recursion is that any loop you can dream of [0] is just a macro away. It also helps with keeping the core of the language clean, as fewer primitives are needed.

https://github.com/codr7/g-fu#macros

There are no comments on this comment yet.