Home Segments Index Top Previous Next

260: Mainline

The variables that appear inside structure definitions—such as price and number—are called structure variables.

In other programming languages, structure variables are called fields or slots. The virtue of such alternative terms is that they encourage you to think of structure definitions as patterns and of structure objects as filled-in patterns. Bowing to convention, however, the term structure variable is used throughout the rest of this book.