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

ext/ripper/lib/ripper/lexer.rb: Do not deprecate Ripper::Lexer::State#[] #5219

Merged
merged 1 commit into from Dec 8, 2021

Conversation

mame
Copy link
Member

@mame mame commented Dec 6, 2021

The old code of IRB still uses this method. The warning is noisy on
rails console.
In principle, Ruby 3.1 deprecates nothing, so let's avoid the
deprecation for the while.
I think It is not so hard to continue to maintain it as it is a trivial
shim.

#5093

The old code of IRB still uses this method. The warning is noisy on
rails console.
In principle, Ruby 3.1 deprecates nothing, so let's avoid the
deprecation for the while.
I think It is not so hard to continue to maintain it as it is a trivial
shim.

ruby#5093
@mame
Copy link
Member Author

mame commented Dec 6, 2021

cc @schneems

@schneems
Copy link
Contributor

schneems commented Dec 7, 2021

I’m fine with this. The one concern is that this method of access is slower than the original Struct#[] or the new method access.

If we know where code is using these in a performance context, they should be updated.

@mame mame merged commit 17e7219 into ruby:master Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants