Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#4,247 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
ruby
Ambito
compilers

Direzione di ricerca

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.

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

Descrizione

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).
Lingua principale
C
Stelle
1k
Fork
195
Merge medio
1g 7h
PR unite (30g)
21

Preparare l'ambiente

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

Tutte le issue di ruby/prism

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.