Re:Yarn's Future – v2 and beyond
by linkmotif on Thursday January 24, 2019 @08:45PM
(#18994828)
Thanks. So in OCaml/Haskell you can write perfectly sound programs?
[ Parent
| on HN ]
Haskell's type system still isn't sound. It just elimates that particular class of errors.
A lack of soundness is closely related to the Turing completeness, especially in languages based on HM. In an ideal world you would want a sound type system and not want Turing completeness, but the tooling doesn't exist to make those choices the most pragmatic right now.
Well, I mean, you can write perfectly sound programs in Java as well, or in TS. It's rather a question of how hard/easy it is to do so. Technically, any language that has either direct memory manipulation or FFI has the potential to do unsound things about types, but it takes a lot more effort.