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

A Use Case Of BCE: Efficient Slice Comparison section not true anymore #64

Closed
erikdubbelboer opened this Issue Sep 24, 2018 · 2 comments

Comments

2 participants
@erikdubbelboer

erikdubbelboer commented Sep 24, 2018

The A Use Case Of BCE: Efficient Slice Comparison section on this page https://go101.org/article/bounds-check-elimination.html is not true anymore. The current version of Go (1.11) doesn't require this trick anymore and can removes the bounds check based on the len() comparison above.

Should this section maybe be removed from the page or should a warning be added that it's only relevant to older versions of Go?

@go101 go101 added the obsoleted label Sep 24, 2018

@go101

This comment has been minimized.

Owner

go101 commented Sep 24, 2018

@erikdubbelboer
thanks for pointing out this trick becomes obsoleted.
I added a note in that section and plan to remove it after some time.

@go101 go101 closed this Sep 24, 2018

@go101

This comment has been minimized.

Owner

go101 commented Sep 24, 2018

btw, you may need refresh that page to see the added note. The pages are cached for about 1.5 hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment