Well-typed expressions and computations - Values and typesTutorial (draft)TypesAutomatic type inferenceDocumentation and user's manualTable of contentsOCaml programs

Automatic type inference

   
  Given an expression the compiler checks its syntax and whether all value names it contains are bound. Of course!

   
  Moreover, if the expression is not well-typed
  • Then the compiler rejects it.
  • Else

    the compiler computes the type of the expression (along with its value).

   
  Thus in Objective Caml

there is no need for type declaration!

Yet it is a strictly-typed language. That is, implicit conversions are forbidden.


Latest update : October 5, 2006
This document was translated from LaTeX by Hyperlatex 2.5, which is not the latest version of Hyperlatex.

Well-typed expressions and computations - Values and typesTutorial (draft)TypesAutomatic type inferenceDocumentation and user's manualTable of contentsOCaml programs