Hello World in OCaml
Every programming journey starts with Hello World. Let’s write our first OCaml program and explore what makes this functional language special.
The Code
Create a file named hello.ml:
|
Every programming journey starts with Hello World. Let’s write our first OCaml program and explore what makes this functional language special.
Create a file named hello.ml:
|
In most languages, variables are mutable containers that hold values. OCaml takes a different approach. With its roots in the ML family of functional languages, OCaml uses let bindings — names bound …
Read more →Operators are the building blocks of expressions. In OCaml they have characteristics that surprise newcomers from C-family languages: arithmetic operators are not overloaded between integers and …
Read more →Showing 1–3 of 3 posts (page 1 of 1)