Clever Geek Handbook
πŸ“œ ⬆️ ⬇️

Caml

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
Caml.128x58.gif
SemanticsObject oriented
Language class
Appeared in1985
AuthorINRIA
Developer
Release3.11.2 (01.20.2010)
Type systemstrict , static
Main implementationsOCaml , Caml Light
InfluencedStandard 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

Notes

Links

  • Caml official website
  • Various Caml Resources
Source - https://ru.wikipedia.org/w/index.php?title=Caml&oldid=100914938


More articles:

  • Kummer, Caspar
  • Longitarsus rutilus
  • Borkovsky Village Council (Kharkiv Oblast)
  • Apology of Socrates (Xenophon)
  • Veliky Golshansk Village Council (Kharkiv Oblast)
  • Marching cubes
  • Sokolovsky Village Council (Zmievsky District)
  • Grantham
  • Song of the Velound
  • List of opera entries by Jules Massenet

All articles

Clever Geek | 2019