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

Deprecate String#unsafe_byte_at #10559

Conversation

straight-shoota
Copy link
Member

string.unsafe_byte_at(i) is equivalent to string.to_unsafe[i]. It doesn't make sense to have an extra method for this, which is even longer.

This picks up part of #5503.

src/uri/params.cr Outdated Show resolved Hide resolved
Copy link
Member

@asterite asterite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@straight-shoota straight-shoota added this to the 1.2.0 milestone Sep 14, 2021
@straight-shoota straight-shoota merged commit 55d76be into crystal-lang:master Sep 17, 2021
@straight-shoota straight-shoota deleted the refactor/deprecate-string-unsafe_byte_at branch September 17, 2021 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants