I couldn't find the spec, but I found keywords can be index like Array: ```ruby Data.define(:a, :b).new(0 => 1, 1 => 2) #=> #<data a=1, b=2> Data.define(:a, :b).new(-2 => 1, -1 => 2) #=> #<data a=1, b=2> ``` So the code belo...jnchito (Junichi Ito)
I feel it would be more natural if it was defined as instance method: ``` ruby /a/.linear_time? Regexp.new('a').linear_time? ``` Is there any reason for class method?jnchito (Junichi Ito)
`max_of` method is very elegant! I really want the Ruby version of this method. For example, I need to write `column_width = @ls_files.map { |ls_file| ls_file.name.size }.max` to determine column width according to the longest file nam...jnchito (Junichi Ito)
I noticed this change just now. We have some programs which depended on the previous behavior. It loses backward compatibility, so I think it should have been noted in NEWS.md in Ruby 3.1.0. I understand it's too late to say that, though.jnchito (Junichi Ito)