Skip to content

Do not autosplat when calling procs that accept rest and keywords - #2502

Merged
jeremyevans merged 1 commit into
ruby:masterfrom
jeremyevans:no-autosplat-proc-rest-keyword-16166
Mar 9, 2020
Merged

Do not autosplat when calling procs that accept rest and keywords#2502
jeremyevans merged 1 commit into
ruby:masterfrom
jeremyevans:no-autosplat-proc-rest-keyword-16166

Conversation

@jeremyevans

Copy link
Copy Markdown
Contributor

When providing a single array to a block that takes a splat, pass the
array as one argument of the splat instead of as the splat itself,
even if the block also accepts keyword arguments. Previously, this
behavior was only used for blocks that did not accept keywords.

@jeremyevans
jeremyevans force-pushed the no-autosplat-proc-rest-keyword-16166 branch 2 times, most recently from 87923ff to aafeb4c Compare March 9, 2020 00:44
When providing a single array to a block that takes a splat, pass the
array as one argument of the splat instead of as the splat itself,
even if the block also accepts keyword arguments.  Previously, this
behavior was only used for blocks that did not accept keywords.

Implements [Feature#16166]
@jeremyevans
jeremyevans force-pushed the no-autosplat-proc-rest-keyword-16166 branch from aafeb4c to 8b3d2d0 Compare March 9, 2020 02:54
@jeremyevans
jeremyevans merged commit f4394bb into ruby:master Mar 9, 2020
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.

1 participant