Skip to content

Chapter 5: Deep Mutual Recursion #176

Open
@weatherman2095pro

Description

@weatherman2095pro

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions