O'Caml

From Compsci.ca Wiki

Jump to: navigation, search

Contents

What is O'Caml?

O'Caml (or Objective-Caml) is a programming language which permits numerous styles of programming. Notably these include statically-typed functional programming with type inference and object-orientation with multiple inheritance.

Syntax

O'Caml's syntax is generally regarded as foreign by those familiar with C or C-like languages.

Areas of divergence

  • O'Caml uses the semi-colon not to terminate statements, but rather to separate expressions, and their use in O'Caml where unnecessary leads to errors.
  • O'Caml does not support operator overloading. A common source of initial confusion is that integer operations use +, -, * and / while floating point operations use +., -., *. and /.

External Links

Official site: http://caml.inria.fr

Personal tools