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

Aperta
#11 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@tangentstorm ci sta già lavorando.

Dal 29/10/2026.

  • #15 di @tangentstorm — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
6
Fork
1
Merge medio
3m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di tangentcode/implish

Tutte le issue di tangentcode/implish

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.