Skip to content

Ruby 2.6: Add #to_h with block argument to Array, Enum, ENV, Hash and Struct#5494

Merged
headius merged 4 commits intojruby:ruby-2.6from
nomadium:ruby-2.6-add-to_h-with-block-to-array-enum-env-hash-and-struct
Dec 18, 2018
Merged

Ruby 2.6: Add #to_h with block argument to Array, Enum, ENV, Hash and Struct#5494
headius merged 4 commits intojruby:ruby-2.6from
nomadium:ruby-2.6-add-to_h-with-block-to-array-enum-env-hash-and-struct

Conversation

@nomadium
Copy link
Contributor

@nomadium nomadium commented Dec 3, 2018

Copy link
Member

@enebo enebo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single very minor change and it looks good!

@nomadium nomadium force-pushed the ruby-2.6-add-to_h-with-block-to-array-enum-env-hash-and-struct branch from 6555e06 to bdbad97 Compare December 4, 2018 19:29
@lopex
Copy link
Contributor

lopex commented Dec 4, 2018

MRI seems to have refactored rb_hash_set_pair (used in enum, hash, struct) where they have centralized checks for "wrong element type" and "element has wrong array length".
We seem to duplicate a lot.

@enebo
Copy link
Member

enebo commented Dec 4, 2018

@lopex perhaps a good follow up commit?

@lopex
Copy link
Contributor

lopex commented Dec 5, 2018

@enebo yeah I'll do that, hopefuly on this weekend, and have some more things on the table regarding match data, and 2.6 String#split, etc

…iven

For more information, please see feature #15143.
… if given

For more information, please see feature #15143.
…given

For more information, please see feature #15143.
For more information, please see feature #15143.
@nomadium nomadium force-pushed the ruby-2.6-add-to_h-with-block-to-array-enum-env-hash-and-struct branch from bdbad97 to 4339982 Compare December 5, 2018 22:03
@nomadium
Copy link
Contributor Author

nomadium commented Dec 5, 2018

@enebo @kares I think I addressed your comments. Please take a look at this again when you have a chance.

@kares
Copy link
Member

kares commented Dec 6, 2018

LGTM

@headius headius added this to the JRuby 9.3.0.0 milestone Dec 13, 2018
@headius headius merged commit 958a96c into jruby:ruby-2.6 Dec 18, 2018
@nomadium nomadium deleted the ruby-2.6-add-to_h-with-block-to-array-enum-env-hash-and-struct branch December 18, 2018 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants