Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Separate Keyword Arguments from Positional Arguments #2395
Appveyvor CI failure appears unrelated:
The test-bundler failures are actually caused by this, because bundler or bundler's tests have not been modified to support keyword argument separation, and the warnings generated are breaking tests checking for no warnings. I'll see if I can fix that.
Aug 30, 2019
11 of 12 checks passed
Sure, you can provide real world feedback. As much as possible, other than the change for keyword splats to accept non-Symbol keys, we want the 2.7 behavior to be the same as the 2.6 behavior, except for warnings. In Ruby 3, you will have to pass keyword parameters either literally or via the double splat, and Ruby will not automatically convert keyword parameters to positional hashes or vice versa if the method accepts keyword parameters. If the method does not accept keyword parameters, any keyword parameters will be treated as a positional hash argument.
It's not completely unrelated, because this feature changes the requirements in order to do perfect forwarding. No longer
def foo(**) bar(**)
Could be another approach to reuse existing token.