GoGo · Lesson 2 of 8
Variables & Types
Go is statically typed, but it has type inference. You get the safety of static types without the verbosity. Usually.
◆ Note
Go has no implicit type conversion. Ever. int(x) and float64(y) are required everywhere. This catches bugs but requires more typing. The Go team considers this a worthwhile tradeoff.
Go has no implicit type conversion. Ever. int(x) and float64(y) are required everywhere. This catches bugs but requires more typing. The Go team considers this a worthwhile tradeoff.