Earlier quoted context omitted.
None of those are trapped errors. In Python, Java, C, OCaml, and most other languages, 1 / 0 aborts the program. That is, division by zero is a trapped error. In JavaScript, it's not. It keeps going and lets you do stuff like access nonexistent properties .foo on the result, which are also untrapped errors . So JavaScript is unsafe in Cardelli's terminology. It gives you untrapped errors rather than trapped ones. The…
It's Infinity in Haskell Prelude> 1.0 / 0.0 :: Double Infinity
I’m sort of surprised by that since my memory is that infinity isn’t a real number, rational, etc. That is, does infinity in Haskell obey some algebraic laws?