Skip to content

remove the copy keyword, make Copy represent implicitly copyable types #5522

Closed
@thestinger

Description

@thestinger

I think this is the consensus after quite a few discussions about this. Clone will be the way to explicitly copy an ownership tree (stops at @ boundaries).

In the future, a DeepClone trait could be implemented to copy past @ boundaries, but it will have to handle cycles to work in the general case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions