Category: OCaml
-
Learning About Names and Functions in OCaml
In chapter 2 of OCaml from the very beginning, I learned the following: Naming an expression Use the following constructs to define our own name (e.g., x) to stand for the result of evaluating an expression: let x = (expression) ;; let x = (expression) in (another expression) ;; OCaml replies to confirm that an…
-
OCaml – from the very beginning
I’m going to deep dive the language of OCaml and become an expert of this language. Why OCaml? Because I want to write programs that make no mistakes, and OCaml seems to help with that. As explained in this website ‘OCaml is a general purpose programming language with an emphasis on expressiveness and safety……it (OCaml)…