Part III

Modelling Data

With the memory model in place, this part turns to shaping data: values that can be one of several kinds, structures linked together without pointers, data whose lifetimes do not follow the shape of the code, and the ways a program reports that something went wrong.

  1. 12Enums in Two Sizes
  2. 13Links Without Pointers
  3. 14Pools for Lifetimes That Don't Nest
  4. 15Errors