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

Remove Slice#pointer #7581

Merged

Conversation

Maroo-b
Copy link
Contributor

@Maroo-b Maroo-b commented Mar 23, 2019

Issue: #7004
As discussed with @straight-shoota and @asterite Slice#pointer is a confusing method and it should be removed.
The code was refactored to keep the verification logic in Slice mainly for copy methods.

I was thinking if we should add a deprecation warning or just mention this as a breaking change in case someone is using Slice#pointer.

src/slice.cr Show resolved Hide resolved
src/slice.cr Outdated Show resolved Hide resolved
@Maroo-b Maroo-b force-pushed the 7004_remove_slice_pointer_method branch 3 times, most recently from 9ee2f84 to 5d2d998 Compare April 2, 2019 21:58
src/regex.cr Outdated Show resolved Hide resolved
Copy link
Member

@straight-shoota straight-shoota left a comment

Choose a reason for hiding this comment

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

Apart from this minor improvement, this is GTG!

Issue: crystal-lang#7004
Slice#pointer caused confusion and it used mainly for verification.
@Maroo-b Maroo-b force-pushed the 7004_remove_slice_pointer_method branch from 5d2d998 to 0337409 Compare April 3, 2019 14:31
Copy link
Member

@sdogruyol sdogruyol left a comment

Choose a reason for hiding this comment

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

Thank you @Maroo-b 🙏

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.

Weird Slice#pointer method semantics
5 participants