Skip to content

rename shallow_clone to handle? #313

Description

@apoelstra

Maybe better off as a discussion.

See https://smallcultfollowing.com/babysteps/blog/2025/10/07/the-handle-trait/

This describes a trait which is almost exactly our shallow_clone idiom which we use in this crate and others to try to distinguish "real clones" from "arc clones". The blog post observes that what's important about a shallow clone isn't that it's cheap, necessarily, but that it yields a "handle" to the original object rather than an indepndent copy. I think our word "shallow" is better but if the ecosystem moves toward different terminology we should follow.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions