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

Offen
#11 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

@tangentstorm arbeitet bereits daran.

Seit 29.10.2026.

  • #15 von @tangentstorm — offen

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
30/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Veraltet
Tech-Stack
typescript
Bereich
backend

Rechercherichtung

Start in imp-show.mts at line 104, then read the loader's backtick-symbol parsing to understand how commas are treated. Check how showing dictionaries with symbol keys and symbol-vector values round-trips through the loader; done means the original key names are preserved. An open linked pull request (#15) is already addressing this issue.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

approved follow-up

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.

Vorherrschende Sprache
TypeScript
Sterne
6
Forks
1
Ø Merge
3 Min.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus tangentcode/implish

Alle Issues in tangentcode/implish

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.