Any samples given are not meant to have error checking or show best practices. They are meant to just illustrate a point. I may also give inefficient code or introduce some problems to discourage copy/paste cod
there's always a good chance you're going to crash with a NullPointerException. By requiring correct handling ofNone(null) and ensuring pattern matching is exhaustive, OCaml's type checking is far more useful. As with