Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Default to version: "current" instead of version: "latest" for Prism 2.0?

Fechada
#4,247 3 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
ruby
Domínio
compilers

Direção de pesquisa

Start with the linked Ruby bug discussion and the existing Prism version option behavior. Assess the compatibility consequence described here—raising when Prism lacks a parser for RUBY_VERSION—and whether defaulting to "current" is appropriate for Prism 2.0; done means the default and its consequences are clearly decided.

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

Descrição

Coming from https://bugs.ruby-lang.org/issues/22379#note-13 and previous discussions on this topic, I think it would be more intuitive and less error-prone for most Prism users for the default version to be "current" and not "latest".

Another POV, if there was no default for the version, would there be more people specifying "current" or "latest"? I suspect more for "current" and "latest" would actually be pretty rare. I think most Prism use cases want either "current"/"nearest" or a fixed version, and rarely "latest".

Is that something that could be considered for the upcoming Prism 2.0?

Known consequences:

  • It will raise an exception if Prism doesn't have a parser for RUBY_VERSION. I think this is fine, and make people think about the right solution (update to a newer Prism, run on a newer Ruby, use "latest"/"nearest" knowing it won't be the exact grammar, etc).
Linguagem predominante
C
Estrelas
1k
Forks
198
Merge médio
7h 59min
PRs com merge (30d)
61

Preparar o ambiente

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 ruby/prism

Todas as issues de ruby/prism

Issues semelhantes

Mais issues de C

Receba novas issues na sua caixa de entrada

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