mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
![]() This makes it hard to do version checks against this value. The current version checks work because there are so few possible values at the moment.
As an example, PR 3337 introduces new syntax for ruby 3.5 and uses `PM_OPTIONS_VERSION_LATEST` as its version guard. Because what is considered the latest changes every year, it must later be changed to `parser->version == parser->version == PM_OPTIONS_VERSION_CRUBY_3_5 || parser->version == PM_OPTIONS_VERSION_LATEST`, with one extra version each year.
With this change, the PR can instead write `parser->version >= PM_OPTIONS_VERSION_CRUBY_3_5` which is self-explanatory
and works for future versions.
|
||
---|---|---|
.. | ||
parse_result | ||
polyfill | ||
translation | ||
desugar_compiler.rb | ||
ffi.rb | ||
lex_compat.rb | ||
node_ext.rb | ||
pack.rb | ||
parse_result.rb | ||
pattern.rb | ||
prism.gemspec | ||
relocation.rb | ||
string_query.rb | ||
translation.rb |