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

tour: clear up source/destination slice confusion #209

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

crisman
Copy link
Contributor

@crisman crisman commented Mar 10, 2023

In "tour/moretypes/10" ("Slice defaults") the phrase "the length of the slice for the high bound" has generated more than a dozen issues, mostly wanting to replace "slice" with "array". The confusion is that when slicing, the word "slice" is not well defined we will have an output slice (result of the slice expression) and may well have a input slice (e.g. in the example code in "slice-bounds.go"). The spec uses the phrase "length of the sliced operand" for the high bound.

Change wording of slice default upper bound to phrase used in "ref/spec" and reword the slide text to point out what the "sliced operands" are in the slide and program examples.

Fixes golang/tour#1386
Fixes golang/tour#879
Fixes golang/tour#855
Fixes golang/tour#821
Fixes golang/tour#679
Fixes golang/tour#448
Fixes golang/tour#182

See golang/tour#182 for context and links to many of the issues.

In "tour/moretypes/10" ("Slice defaults") the phrase "the length of the
slice for the high bound" has generated more than a dozen issues, mostly
wanting to replace "slice" with "array". The confusion is that when
slicing, the word "slice" is not well defined we will have an output
slice (result of the slice expression) and may well have a input slice
(e.g. in the example code in "slice-bounds.go"). The spec uses the
phrase "length of the sliced operand" for the high bound.

Change wording of slice default upper bound to phrase used in "ref/spec"
and reword the slide text to point out what the "sliced operands" are in
the slide and program examples.

Fixes golang/tour#1386
Fixes golang/tour#879
Fixes golang/tour#855
Fixes golang/tour#821
Fixes golang/tour#679
Fixes golang/tour#448
Fixes golang/tour#182

See golang/tour#182 for context and links to many of the issues.
@gopherbot
Copy link
Contributor

This PR (HEAD: c65e21b) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/website/+/475216 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@crisman
Copy link
Contributor Author

crisman commented Mar 13, 2023

Also fixes golang/tour#1337

@crisman
Copy link
Contributor Author

crisman commented May 2, 2023

Also fixes golang/tour#1483

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants