quiz icon indicating copy to clipboard operation
quiz copied to clipboard

Creating a channel inside the loop?

Open Mehrwegflasche opened this issue 3 years ago • 0 comments

Firstly thanks for creating these screencasts and making it public. In the quiz exercise, Problem #2, I see that a channel is being created on every iteration, is that required? As I can create the channel outside the loop as well.

https://github.com/gophercises/quiz/blob/3b2250f3d56e07dd320f5c6272febe7827988d3e/main.go#L34

Mehrwegflasche avatar Aug 03 '22 15:08 Mehrwegflasche