There's int, int32, int64
in Golang
.
int32 has 32 bits,
int64 has 64 bits,
int has 32 or 64 or different number of bits according to the environment.
I think int32
and int64
will be totally enough for the program.
I don't know why int
type should exist, doesn't it will make the action of our code harder to predict?
And also in C++
, type int
and type long
have uncertain length. I think it will make our program fragile. I'm quite confused.