I just start to learn some basic of golang
, it is little strange for me when looking at the array define syntax.
C++/C#/Java all defines multi-dimensional arrays like:
int arr[X][Y][Z]; // C/C++
int[,,] arr = new int[X, Y, Z]; // C#
int[][][] multi = new int[X][Y][Z]; // Java
And in go:
var arr [Z][Y][X]int32 // go
what is the advantage about the syntax?