Chapter 9
Algebraic types


Aims


Issues

Running examples

The simulation and calculator examples are taken up in subsequent chapters; it would be quite possible to cover the examples in one session, but only later in the course.

Exercises

A number of exercises in the chapter are open-ended, calling as they do for the design of data types to model various situations. These can form a focus for a small-group discussion, in which students are encouraged to compare their designs with others, and to evaluate their suitabilty for purpose. The implicit message of such exercises is important: there is more to the programming process than sitting in front of a terminal, coding.

Next Up


Written 18 May 1995.