Skip to content

Maps: are keys reliably unique? #36

@mgravell

Description

@mgravell

The specification indicates that they should be treated as a dictionary / hash structure, but it isn't clear what should happen if duplicate keys are encountered. The specific scenarios are shared with #35

and could be re-stated:

How is the following to be interpreted?

%2<CR><LF>
    +ttl<CR><LF>
    :3600<CR><LF>
    +ttl<CR><LF>
    :9001<CR><LF>
:3<CR><LF>

is this:

  • illegal
  • valid, last value wins (so: ttl = 9001)
  • valid, all values should be preserved (so: ttl = [3600, 9001] in some way)
  • something else?

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