I started working with go for a few weeks, and (once again) I stumbled across something that seems odd for me:
// Not workinga := 1{ a, b := 2, 3}// Worksa := 1a, b := 2, 3
I want to assign two variables simultaneously.One is already declared, in a superior scope, the other one is not.
It does not work: the compiler tries to redeclare the former variable.However, it works fine if this variable is declared in the same scope.
Why is that?