For people using OCaml, there’s one thing that kinda discourages me in it, that is exceptions as part of the API in the standard library.
Because exceptions aren’t checked, this effectively means that a language designed for type safety has as much type safety as python, because it’s very easy to forget handling something, and get runtime errors.
How do you deal with this day to day? I assume it’s impossible to just believe that all the code you pull in doesn’t use exceptions?
replies(4):