Re:Swift architecture at Uber
by paulddraper on Thursday April 27, 2017 @06:26AM
(#14210449)
Which languages before 1980 had an option/maybe type?
[ Parent
| on HN ]
Re:Swift architecture at Uber
by steveklabnik on Thursday April 27, 2017 @07:13AM
(#14210637)
https://en.wikipedia.org/wiki/Tagged_union#1960s (and so on in the rest of the article; you could make the argument that being able to express a sum type and using option/result pervasively are different things; I don't know much about early ML but it was from '73...)
Re:Swift architecture at Uber
by paulddraper on Thursday April 27, 2017 @10:12AM
(#14211575)
No, a sum type is the essence.
TIL that ML is ooold.
ML has roots that go back a long ways, but it wasn't developed as a general-purpose programming language (for use outside theorem provers) until the '80s, and I'd consider it properly "released" to the general public as something intended for real use only in the 1990s, with the publication of the Standard ML definition (1990) the release of OCaml (1996).