O'Caml

From Compsci.ca Wiki

(Difference between revisions)
Jump to: navigation, search
(Areas of divergence)
 
Line 9: Line 9:
=== Areas of divergence ===
=== 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 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 overloadingA common source of initial confusion is that integer operations use +, -, * and / while floating point operations use +., -., *. and /.
== External Links ==
== External Links ==
Official site: http://caml.inria.fr
Official site: http://caml.inria.fr

Latest revision as of 05:02, 11 October 2008

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