Quoted lists lose their quote when shown

Aberta
#16 0 comentários 0 reações 0 responsáveis Ver no GitHub

@tangentstorm já está trabalhando nisso.

Desde 29/10/2026.

  • #18 de @tangentstorm — aberto

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
25/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
typescript
Domínio
compilers

Direção de pesquisa

Start by reading the implementations of quoting and show; the issue does not name specific files or tests. Decide how quoted code lists can be distinguished from evaluated lists, then check that showing and reading back a quoted list preserves it without evaluating its contents. Pull request #18 is already open against this issue.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

approved follow-up

Follow-up from #11 / #15 (found by the show → load → show survey there).

A quoted list doesn't keep its quote when shown, so reading the output back evaluates the code instead of giving back the same list:

> l: '[a b]
[a b]
> value show :l
Error: undefined word: a
> l2: '[1 + 2]
[1 + 2]
> value show :l2
[3]

show :l should give text that reads back as the same unevaluated list. The catch is that an evaluated list and a quoted (code) list have the same representation, so the writer can't tell them apart today. The fix needs a decision on how code-as-data lists are marked (for example, a flag set by the quote, which the writer uses to put ' back on).

Same on main; not caused by #15.

Linguagem predominante
TypeScript
Estrelas
6
Forks
1
Merge médio
3min
PRs com merge (30d)
1

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de tangentcode/implish

Todas as issues de tangentcode/implish

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.