Skip to content

Document why SideEffecting cata takes ownership, make sure API and impl live up to the vision #89

Description

@luketpeterson

Document that this was an intentional design choice. Consuming the trie means we have mutable access to the parts of the trie we're visiting. It means Vs, and subtries in future APIs, can be passed as owned objects to closures. Meaning there is no clone overhead for trie transformations that tear down a trie and reconstitute in another form.

Without these docs, it appears we just forgot to update the side-effecting cata.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions