golang / tour

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

tour: [Type switches] #1600

Open jiechen257 opened 6 months ago

jiechen257 commented 6 months ago

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

image

Does the statement in the red circle carry any ambiguity?

In each case branch of the code block, v represents the type of i, yet emphasizing this point specifically in the default case, does it feel misleading or redundant?