Skip to content

documentation for the why of "key" #82

@kswope

Description

@kswope

I don't see a single use case anywhere for why keys even exist even though they are sprinkled throughout the docs, or how you would implement multiple keys.

Even in the very first example you find this line but no mention of "myKey" ever again.

var structure = immstruct('myKey', { a: { b: { c: 1 } } });

Some places even imply that keys are a ho-hum feature:

Provide optional key to be able to retrieve it from list of instances. If no key is provided, a random key will be generated.

optional: - defaults to random string

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions