3 ms·
It is more readable, if have multiple declarations, since the names are aligned instead of the types. var x int var foo map[string]int var dummy []int c
by qznc 14y ago
It is more readable, if have multiple declarations, since the names are aligned instead of the types.
var x int
var foo map[string]int
var dummy []int
compared to
var int x
var map[string] int foo
var []int dummy