Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#4,247 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
ruby
Lĩnh vực
compilers

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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).
Ngôn ngữ chính
C
Star
1k
Fork
195
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
21

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ruby/prism

Tất cả issue của ruby/prism

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.