|
|
|
|
|
by skohan
1864 days ago
|
|
> Doesn't Java fit the same bill? (although it was kinda modern at the time) Yes, I think Java was an earlier attempt at this. > Sadly it's really hard to shoe-horn this onto Go, now that the std lib is widely used. Same for proper sum types (which can then be used for multiple return values). I agree, I think these types of features are much easier to design around than to add into a mature ecosystem later > But the continuation of the nullability mistake puzzles me the most... And that wile Go's be designed by big name lang gurus: what were they thinking? Is it just a timing thing? It seems like explicit nullability came onto the mainstream a few years after Go debuted, but maybe it was already discussed in academic circles before then. |
|
I know OCaml[1] has it ('93) and Haskell[2] ('90). Also the claim that implicit nullability is a mistake was made in 2009[3] (around the same time Go was released).
Given the seniority of the designers of Go, I expect they had knowledge of this.
https://en.wikipedia.org/wiki/OCaml
https://en.wikipedia.org/wiki/Haskell_(programming_language)
https://en.wikipedia.org/wiki/Tony_Hoare