Skip to content

fork_read_zipper needs to return an Option<Z> #96

Description

@luketpeterson

A read zipper forked from a parent on a non-existent path is useless. There is no way the child zipper can ever explore anything but empty nothingness.

In the old API, that was a "so, what?" type of concern. But having to support fork_read_zipper always returning a valid zipper has upstream implications that are getting in the way of some optimizations for other zipper types that want to implement the ZipperForking trait.

Activity

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

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