Skip to content

Follow Ruby's behavior for numbered parameters in -> {}#6419

Merged
matz merged 1 commit into
mruby:masterfrom
hoshiumiarata:fix_numparams_in_lambda
Nov 15, 2024
Merged

Follow Ruby's behavior for numbered parameters in -> {}#6419
matz merged 1 commit into
mruby:masterfrom
hoshiumiarata:fix_numparams_in_lambda

Conversation

@hoshiumiarata

Copy link
Copy Markdown
Contributor

Numbered parameters were not allowed in -> {}, but Ruby allows them, so I changed the behavior to follow Ruby.
Also, I adjusted the lambda node offset in mrb_parser_dump (it printed the lambda body at the same indent as NODE_LAMBDA).

@hoshiumiarata hoshiumiarata requested a review from matz as a code owner November 13, 2024 13:29
@matz matz merged commit 628f057 into mruby:master Nov 15, 2024
@hoshiumiarata hoshiumiarata deleted the fix_numparams_in_lambda branch November 19, 2024 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants