|
|
|
|
|
by nvlled
267 days ago
|
|
I'm confused at the responses saying this intuitive.
It's like saying: var x string
x = "abc.com"
x = "xyz.com"
fmt.Println(x)
will print abc.com and that's totally expected.The normal intuition would be that the latter operations or (re)definitions override the preceding ones. |
|
The order of operations has nothing to do with it.
is equivalent to