Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Make the order of Hash#reverse_merge! consistent with HashWithIndifferentAccess #28077
Currently, the result of
This PR aims to make the element order consistent across the 4 methods such that:
That's true. What I also haven't done yet is run a benchmark to see the impact.
It does make the implementation simpler to maintain, since it's the same as
A further improvement could be to remove the method definition there, since it inherits from