Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser 3.0: numblocks support #2149

Merged
merged 1 commit into from
Dec 31, 2020
Merged

Parser 3.0: numblocks support #2149

merged 1 commit into from
Dec 31, 2020

Conversation

hmdne
Copy link
Member

@hmdne hmdne commented Dec 31, 2020

This pull request depends on #2148.

This pull request implements a Ruby 2.7 syntax feature of numblocks by transforming an expression of this kind:

proc { _1 + _2 }

Into an expression of this kind:

proc { |_1, _2| _1 + _2 }

@elia elia merged commit 5b391e4 into opal:master Dec 31, 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.

None yet

2 participants