> problems in finance, energy, medicine, etc., that are more correctness-sensitive than performance-sensitive
What does correctness-sensitivity mean in this context and how is it missing from a language like Python for example?
What does correctness-sensitivity mean in this context and how is it missing from a language like Python for example?
Python of course has none of this (“this average function actually returns the string ‘fix me!’ on some inputs because the programmer forgot to fill in and else branch”). Mypy is a useful tool but it doesn’t stop type-incorrect code from being executed and isn’t as powerful as Haskell. Likewise, the Haskell compiler certainly doesn’t catch everything, but it does completely eliminate many common Python bugs.
There is obviously a “spectrum” since no general purpose language has a truly rigorous type system.