8000 Remove compiler code to handle keywords and blocks in operator assignment syntax by jeremyevans · Pull Request #10279 · ruby/ruby · GitHub
[go: up one dir, main page]

Skip to content

Remove compiler code to handle keywords and blocks in operator assignment syntax #10279

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 8000 statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

jeremyevans
Copy link
Contributor

Code such as:

foo[0, &bar] += baz
foo[0, bar: 1] += baz
foo[0, **bar] += baz

Is now a syntax error, so all of the removed code is now dead.

…ment syntax

Code such as:

```ruby
foo[0, &bar] = baz
foo[0, bar: 1] = baz
foo[0, **bar] = baz
```

Is now a syntax error, so all of the removed code is now dead.
@jeremyevans jeremyevans requested a review from nobu March 18, 2024 18:46
@jeremyevans jeremyevans merged commit 3a674c9 into ruby:master Apr 5, 2024
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.

2 participants
0