Skip to content

Remove raw array methods and helpers with fillnil changed#8639

Merged
enebo merged 2 commits intojruby:10-devfrom
enebo:fillnilimprovements
Feb 19, 2025
Merged

Remove raw array methods and helpers with fillnil changed#8639
enebo merged 2 commits intojruby:10-devfrom
enebo:fillnilimprovements

Conversation

@enebo
Copy link
Member

@enebo enebo commented Feb 18, 2025

Now that we are not filling nils to capacity of array we do not need these methods at all and can go back to newArray(context, length).

Now that we are not filling nils to capacity of array we do not
need these methods at all and can go back to newArray(context, length).
@enebo enebo added this to the JRuby 10.0.0.0 milestone Feb 18, 2025
newArray has bugged me for the length versions because while it
makes a new Array it is empty and the length value is not obvious
in what it provides.

At least, this is my take on what a new user would ponder.  alloc
shows intent more.
@enebo enebo merged commit dcc493c into jruby:10-dev Feb 19, 2025
54 of 73 checks passed
@enebo enebo deleted the fillnilimprovements branch March 4, 2025 18:30
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.

1 participant