Skip to content

Copying simple objects #35309

Closed as not planned
Closed as not planned
@qis

Description

@qis

Is the dart-lang team willing to re-visit the idea of a dedicated copy function that allows users to create a deep or shallow copy of objects if it can be proven that there are no side effects (no setters present, etc.)?

How about a dedicated copy constructor/operator similar to C++ for when such a copy cannot be done safely?

The last issue I could find was created/updated over 6/3 years ago: #3367

Dart 2.1.0 (build 2.1.0-dev.9.4 f9ebf21)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).closed-staleClosed as the issue or PR is assumed stalecore-ntype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions