tour: clarify conditionless switch benefits - #372
Conversation
6b0b85c to
19ba680
Compare
|
This PR (HEAD: 19ba680) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/website/+/812980. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/812980. |
|
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be Please don’t reply on this GitHub thread. Visit golang.org/cl/812980. |
Clarify that a conditionless switch lets cases test conditions involving different variables. This makes it a readable alternative to if-then-else chains when the conditions do not share a single switch value.
Keeps the existing time-of-day example intact.