3 ms·
You are confusing static typing and strong typing. I understand that both Go and Swift are statically typed. My comment is about saying that Go and Swift have
by halosghost 11y ago
You are confusing static typing and strong typing.
I understand that both Go and Swift are statically typed. My comment is about saying that Go and Swift have type systems which are really strong, but such an assertion means nothing unless you give a point of reference (i.e., “strong compared to X”)
To clarify, type inference and strength (or strictness actually) of typing are completely unrelated. For example, Haskell, which is statically typed (and far stronger than most other languages out there—though certainly not the strongest) has incredibly good type-inference, so you rarely need to specify types.