golang / tour

[mirror] A Tour of Go
BSD 3-Clause "New" or "Revised" License
1.54k stars 521 forks source link

tour: Methods and interfaces -> Exercise: Readers : is confusing #1412

Open Botster opened 2 years ago

Botster commented 2 years ago

Context: https://go.dev/tour/methods/22

The instructions contain just a single sentence: "Implement a Reader type that emits an infinite stream of the ASCII character 'A'."

What I find confusing is, first, a reader would not be a producer (emitter) but a consumer. And there is no instruction as to what is to be done with the byte slice argument.

Others have found it confusing as well: https://stackoverflow.com/questions/27839140/tour-of-go-exercise-22-reader-what-does-the-question-mean

schwja04 commented 9 months ago

Rather than post the same issue again, I'll bump this one. It is 15 months from @Botster's issue being posted and this exercise is still confusing. Please take the suggestions that the community offers, we all want to learn the language and this type of experience is a hindrance to the process.

sturmenta commented 4 months ago

it would be better to say: "rewrite all values in []byte into 'A's" link

Jeerjmin commented 3 months ago

Worst description