4 Basic Data Structures, Expressions and Statements

We first introduce the Oz's basic data structures and the Oz's expressions and statements to program with them. We concentrate on concepts rather than completeness.

A data-structure allows to store values of some (data) type and provides the standard procedures for compute with these values. Even though data structures are provided by all programming languages, they are not always provided the same way. All we say has to be complemented by The Oz Base Environment of the Mozart documentation.

We take the viewpoint of functional programming as in SML or Lisp which is quite distinct from that of constraint programming. However, functional programming provides a good platform for constraint programming. The idea of functional programming is to organize computation in terms of values, types, and functions between values of some types. Functions are interpreted as procedures computing the functional value for given arguments.



Denys Duchier, Claire Gardent and Joachim Niehren
Version 1.3.99 (20050412)