Skip to content

Dict show: comma after symbol-valued key changes the key on reload #11

Open

Description

@tangentstorm

From the Codex whole-repo review on #5 (review comment).

Location: imp-show.mts:104 on main (6813323)

[P2] Emit dictionary symbol values without changing their keys

When a dictionary contains symbol values, the inserted comma is attached directly to the key, but the loader's backtick-symbol regex accepts commas as part of symbol names. For example, showing :[c d] produces :[c, d]; evaluating that output creates a dictionary keyed by c, rather than c. Symbol-vector values have the same problem. Consequently, copying the displayed dictionary or round-tripping it through the serializer silently changes its keys. Emit a representation that the loader parses with the original key names.

Checked 2026-10-29: still present on main; not touched by open PRs #3, #4 or #7.

Activity

  1. added
    follow-upFiled from a review finding or neighboring case that belongs in its own change.
    on Oct 29, 2026
  2. moved this to Backlog in implishon Oct 29, 2026
  3. added
    approvedThe human approved the issue. Workers start only on approved issues.
    on Oct 29, 2026
  4. moved this from Backlog to Pending in implishon Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    approvedThe human approved the issue. Workers start only on approved issues.follow-upFiled from a review finding or neighboring case that belongs in its own change.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions