3 ms·
Go's type system is much, much weaker than what is needed for safe static lifetime management be even remotely close to workable. Static typing is not an on-of
by masklinn 5y ago
Go's type system is much, much weaker than what is needed for safe static lifetime management be even remotely close to workable.
Static typing is not an on-off, there are statically typed languages with extremely weak type systems (e.g. C), languages with somewhat weak type systems (e.g. Java, Go), languages with strong type systems (e.g. OCaml, Haskell) and languages with extremely strong type systems (e.g. ATS, Idris).
And that's a simplification because it's not linear either.