Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 5: Deep Mutual Recursion #176

Open
weatherman2095pro opened this issue Oct 4, 2017 · 0 comments
Open

Chapter 5: Deep Mutual Recursion #176

weatherman2095pro opened this issue Oct 4, 2017 · 0 comments

Comments

@weatherman2095pro
Copy link

weatherman2095pro commented Oct 4, 2017

In the chapter on Functional Programming, an example is made of mutually-recursive functions without a hard-set limit on recursion depth.

The example being a user-interactive game makes this reasonable. However, it may be interesting to mention to readers though that if one were to play again enough times (or have a script do it), because Clojure doesn't optimize away Mutual Tail Recursion, it will eventually blow the stack. Using the "trampoline" macro would prevent that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant