Part II

Memory Without a Heap

This part is the heart of the book. It explains where Goose keeps values whose size is not known at compile time, why references into them can never dangle, and how strings, arrays and structs are laid out as plain, contiguous bytes. Read it in order: each chapter builds on the one before.

  1. 6Where Values Live
  2. 7The Array Family
  3. 8References and Slices
  4. 9Strings Are Bytes
  5. 10Structs and Inline Data
  6. 11Optionals