Skip to content

[DOC] Stop discouraging the use of Array#each #10119

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

Merged
merged 1 commit into from
Feb 27, 2024
Merged

Conversation

k0kubun
Copy link
Member

@k0kubun k0kubun commented Feb 27, 2024

Given #9622 and #9533, you shouldn't need to rewrite Array#each with a while loop, which is no longer a C method.

It still helps other ones like Array#map. However, it should be on us to optimize the ones that are used frequently in Ruby 3.4, and ones that are not frequently used shouldn't matter. So I think this should be dropped from the Ruby 3.4 document.

This comment has been minimized.

@matzbot matzbot requested a review from a team February 27, 2024 21:12
@maximecb maximecb merged commit 3668118 into ruby:master Feb 27, 2024
@k0kubun k0kubun deleted the yjit-doc branch February 27, 2024 22:10
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