In Go, there's the type int
which may be equivalent to int32
or int64
depending on the system architecture. I can declare an integer variable without worrying about its size with:
var x int
Why isn't there the type float
, which would be equivalent to float32
or float64
depending on my system's architecture? I wish I could also do:
var x float