Caml is an object-oriented programming language designed to create more secure and secure programs. Caml is very close to Standard ML , or to be more precise, it is its dialect , but there is no full compatibility. The abbreviation stands for Categorical Abstract Machine Language . The language itself is very easy to learn, while maintaining all this sophisticated expressiveness and rigor. It is an obligatory course in some educational institutions in computer science .
| Caml | |
|---|---|
![]() | |
| Semantics | Object oriented |
| Language class | |
| Appeared in | 1985 |
| Author | INRIA |
| Developer | |
| Release | 3.11.2 (01.20.2010) |
| Type system | strict , static |
| Main implementations | OCaml , Caml Light |
| Influenced | Standard ML , F οΌ |
| Site | |
Content
History
The language was developed at the French National Research Institute INRIA in 1985 . There are several developments, in particular, versions for Windows , Linux and Mac OS .
Sample Programs
Display a line of text on the screen
print_endline "[[Hello world]]!" ;;
Functional style factorial :
let rec fact n = if n = 0 then 1 else n * fact ( n - 1 ) ;;
Factorial using pattern matching :
let rec fact = function
| 0 -> 1
| n -> n * fact ( n - 1 ) ;;
See also
- ML Module Language
