Skip to content

Feature Request: Declare variables as immutable #7796

Closed
@michaelmesser

Description

@michaelmesser

Immutable would make a properties on an object immutable recursively.
Example:

immutable const a = ["1", "2", "3"]
a.push("4") // Error function mutates immutable variable

The would be useful with pure functions #7770

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions