Skip to content

Explicitly block nested updates inside immutable collections fields #66

Closed
@loyada

Description

@loyada

Currently it just protects the structure instance with defensive copies, but it will be more developer-friendly if it will explicitly raise an appropriate exception.
For example, if we defined
m = ImmutableArray[Map[String, Integer]]

and we try to change m[0]['xxx'] , then it should throw an appropriate exception.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions