Skip to content

Records' shallow copy even applies to record types, making NetworkDataObject clones problematic #4

@Carsillas

Description

@Carsillas

Copying NetworkDataObjects using with { } syntax is problematic for nested NetworkDataObjects, as the nested ones have their references copied, breaking the single-ownership rules. NetworkDataObjects need to be converted to regular classes, and have some built in utility to clone them via serialization.

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