Home Segments Top Top Previous Next

171: Mainline

In other programming languages, instance variables are called member variables, fields, or slots. The virtue of terms such as slot is that they encourage you to think of class definitions as patterns and of class instances as filled-in patterns. Bowing to convention, however, this book uses the term instance variable throughout.