OCaml is known as Objective Caml is the main implementation of the Caml programming language. It is designed with program safety and reliability in mind. It is very expressive, yet easy to learn and use. Caml supports functional, imperative, and object-oriented programming styles. It has been developed and distributed by INRIA, a French research institute in computer science and applied mathematics, since 1985.
print_endline "Hello World!"can be compiled into a bytecode executable:
$ ocamlc hello.ml -o helloor compiled into an optimized native-code executable:
$ ocamlopt hello.ml -o helloand executed:
$ ./hello Hello World! $