Month: November 2018

  • Strings and Tries; Haskell Versus OCaml

    Strings and Tries; Haskell Versus OCaml

    While doing my OCaml MOOC exercise I came across a trie implementation for looking up words.  I find that the way OCaml treats strings is very different from the way Haskell does it.  It leads to different ways to implement the trie in the two languages. Strings and Tries in  Haskell Haskell is a pure…

  • Eliminating Run Time Errors In OCaml and Haskell

    Eliminating Run Time Errors In OCaml and Haskell

    Run Time Versus Compile Time Error Run time errors are those that happen when the program runs, as opposed to compile time errors which happen when the program compiles.  In a sense, having compile time errors is no big deal, because the errors guarantee that the ill-defined program won’t be running.  The programmer can fix…